mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
The regression test for the regex module should not trip the deprecation
warning for that module, so suppress just that one warning.
This commit is contained in:
parent
994d8539f6
commit
9a1a7dda8f
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
from test_support import verbose
|
from test_support import verbose
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings("ignore", "the regex module is deprecated",
|
||||||
|
DeprecationWarning, "test_regex")
|
||||||
import regex
|
import regex
|
||||||
from regex_syntax import *
|
from regex_syntax import *
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue