]> granicus.if.org Git - python/commitdiff
[Patch #679505] Silence DeprecationWarning when testing rotor module
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 24 Apr 2003 13:18:25 +0000 (13:18 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 24 Apr 2003 13:18:25 +0000 (13:18 +0000)
Lib/test/test_rotor.py

index 28c5af5b1c6b0b253325601c9e63a88d51352e61..eeec55a7a4e9c19206df13c7e59a43673b49269a 100644 (file)
@@ -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")