mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
[Patch #679505] Silence DeprecationWarning when testing rotor module
This commit is contained in:
parent
360088f206
commit
9f4eb6b719
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
import warnings
|
||||
|
||||
warnings.filterwarnings("ignore",
|
||||
category=DeprecationWarning,
|
||||
message='.*is deprecated', module=__name__)
|
||||
|
||||
import rotor
|
||||
|
||||
r = rotor.newrotor("you'll never guess this")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue