]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The regression test for the regex module should not trip the deprecation
authorFred Drake <fdrake@acm.org>
Sat, 23 Dec 2000 22:08:27 +0000 (22:08 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 23 Dec 2000 22:08:27 +0000 (22:08 +0000)
warning for that module, so suppress just that one warning.

Lib/test/test_regex.py

index 3bb78efb1d86a09aa51959c49650e651886b2b8a..b925a669382f47de5eea627e1f46727b03de4223 100644 (file)
@@ -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 *