Commit e0dc3bb3 authored by Guido van Rossum's avatar Guido van Rossum

Use __name__ instead of "test_regex" as the module name in the

warnings.filterwarnings() call.  This suppresses the warning when the
module is imported with its full name (test.test_regex) too.
parent 2c8b27f7
from test_support import verbose from test_support import verbose
import warnings import warnings
warnings.filterwarnings("ignore", "the regex module is deprecated", warnings.filterwarnings("ignore", "the regex module is deprecated",
DeprecationWarning, "test_regex") DeprecationWarning, __name__)
import regex import regex
from regex_syntax import * from regex_syntax import *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment