Commit 155a34d2 authored by Guido van Rossum's avatar Guido van Rossum

The warning filter was ineffective when this module was invoked as a

script.
parent 92cf95f4
......@@ -6,7 +6,7 @@ import warnings
warnings.filterwarnings("ignore",
r'complex divmod\(\), // and % are deprecated$',
DeprecationWarning, r'(<string>|test_descr)$')
DeprecationWarning, r'(<string>|%s)$' % __name__)
def veris(a, b):
if a is not b:
......
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