From: Guido van Rossum Date: Mon, 3 Jun 2002 19:45:32 +0000 (+0000) Subject: The warning filter was ineffective when this module was invoked as a X-Git-Tag: v2.3c1~5498 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=155a34d2e5d755c47ae9d4de8d6dfd4eae200e46;p=thirdparty%2FPython%2Fcpython.git The warning filter was ineffective when this module was invoked as a script. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index faa9d89bdc86..c347d68b0c16 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -6,7 +6,7 @@ import warnings warnings.filterwarnings("ignore", r'complex divmod\(\), // and % are deprecated$', - DeprecationWarning, r'(|test_descr)$') + DeprecationWarning, r'(|%s)$' % __name__) def veris(a, b): if a is not b: