]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The warning filter was ineffective when this module was invoked as a
authorGuido van Rossum <guido@python.org>
Mon, 3 Jun 2002 19:45:32 +0000 (19:45 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Jun 2002 19:45:32 +0000 (19:45 +0000)
script.

Lib/test/test_descr.py

index faa9d89bdc86f644eea25c09fffbd49cba06177c..c347d68b0c16d026a730d9e83f88db8fa30f11ed 100644 (file)
@@ -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: