From: Fred Drake Date: Sat, 23 Dec 2000 22:08:27 +0000 (+0000) Subject: The regression test for the regex module should not trip the deprecation X-Git-Tag: v2.1a1~488 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868;p=thirdparty%2FPython%2Fcpython.git The regression test for the regex module should not trip the deprecation warning for that module, so suppress just that one warning. --- diff --git a/Lib/test/test_regex.py b/Lib/test/test_regex.py index 3bb78efb1d86..b925a669382f 100644 --- a/Lib/test/test_regex.py +++ b/Lib/test/test_regex.py @@ -1,4 +1,7 @@ from test_support import verbose +import warnings +warnings.filterwarnings("ignore", "the regex module is deprecated", + DeprecationWarning, "test_regex") import regex from regex_syntax import *