summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regex.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-23 22:08:27 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-23 22:08:27 (GMT)
commit9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868 (patch)
treec4ec250d3b33033adafa461c5a32de5eb061026b /Lib/test/test_regex.py
parent994d8539f690c19f7dcd02c9f595734e9d566e76 (diff)
downloadcpython-9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868.zip
cpython-9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868.tar.gz
cpython-9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868.tar.bz2
The regression test for the regex module should not trip the deprecation
warning for that module, so suppress just that one warning.
Diffstat (limited to 'Lib/test/test_regex.py')
-rw-r--r--Lib/test/test_regex.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_regex.py b/Lib/test/test_regex.py
index 3bb78ef..b925a66 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 *