From 155a34d2e5d755c47ae9d4de8d6dfd4eae200e46 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 3 Jun 2002 19:45:32 +0000 Subject: [PATCH] The warning filter was ineffective when this module was invoked as a script. --- Lib/test/test_descr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index faa9d89bdc8..c347d68b0c1 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -6,7 +6,7 @@ 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: