summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-03 19:45:32 (GMT)
committerGuido van Rossum <guido@python.org>2002-06-03 19:45:32 (GMT)
commit155a34d2e5d755c47ae9d4de8d6dfd4eae200e46 (patch)
treed517e886513615482f7ded63ad1bce5dfdd49329 /Lib/test
parent92cf95f45b53a6d42c45014fbe5ff3137d1cf2df (diff)
downloadcpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.zip
cpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.tar.gz
cpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.tar.bz2
The warning filter was ineffective when this module was invoked as a
script.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index faa9d89..c347d68 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'(<string>|test_descr)$')
+ DeprecationWarning, r'(<string>|%s)$' % __name__)
def veris(a, b):
if a is not b: