From: Andrew M. Kuchling Date: Thu, 24 Apr 2003 13:18:25 +0000 (+0000) Subject: [Patch #679505] Silence DeprecationWarning when testing rotor module X-Git-Tag: v2.3c1~1046 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f4eb6b719104868f904484778e2e9cf0fba59b0;p=python [Patch #679505] Silence DeprecationWarning when testing rotor module --- diff --git a/Lib/test/test_rotor.py b/Lib/test/test_rotor.py index 28c5af5b1c..eeec55a7a4 100644 --- a/Lib/test/test_rotor.py +++ b/Lib/test/test_rotor.py @@ -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")