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

script.
This commit is contained in:
Guido van Rossum 2002-06-03 19:45:32 +00:00
parent 92cf95f45b
commit 155a34d2e5
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
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: