From 9a1a7dda8f5f3c4c66ab1e24d9b8cf4895249868 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 23 Dec 2000 22:08:27 +0000 Subject: [PATCH] The regression test for the regex module should not trip the deprecation warning for that module, so suppress just that one warning. --- Lib/test/test_regex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_regex.py b/Lib/test/test_regex.py index 3bb78efb1d8..b925a669382 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 *