]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Continue to work even though the test can be named test.test_regex
authorFred Drake <fdrake@acm.org>
Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)
these days.

Lib/test/test_regex.py

index dbc6ec3041867b292daa8d66cb5682b35f4a1db3..2e2c8f65a12c1e00fa669e8d8a1324a08b1aebbf 100644 (file)
@@ -1,7 +1,7 @@
 from test.test_support import verbose, sortdict
 import warnings
 warnings.filterwarnings("ignore", "the regex module is deprecated",
-                        DeprecationWarning, r'test_regex$')
+                        DeprecationWarning, __name__)
 import regex
 from regex_syntax import *