From 9f4eb6b719104868f904484778e2e9cf0fba59b0 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Thu, 24 Apr 2003 13:18:25 +0000 Subject: [PATCH] [Patch #679505] Silence DeprecationWarning when testing rotor module --- Lib/test/test_rotor.py | 6 ++++++ 1 file changed, 6 insertions(+) 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") -- 2.50.1