diff options
author | Guido van Rossum <guido@python.org> | 2002-06-03 19:45:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-03 19:45:32 (GMT) |
commit | 155a34d2e5d755c47ae9d4de8d6dfd4eae200e46 (patch) | |
tree | d517e886513615482f7ded63ad1bce5dfdd49329 | |
parent | 92cf95f45b53a6d42c45014fbe5ff3137d1cf2df (diff) | |
download | cpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.zip cpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.tar.gz cpython-155a34d2e5d755c47ae9d4de8d6dfd4eae200e46.tar.bz2 |
The warning filter was ineffective when this module was invoked as a
script.
-rw-r--r-- | Lib/test/test_descr.py | 2 |
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: |