commit | 155a34d2e5d755c47ae9d4de8d6dfd4eae200e46 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jun 03 19:45:32 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jun 03 19:45:32 2002 +0000 |
tree | d517e886513615482f7ded63ad1bce5dfdd49329 | |
parent | 92cf95f45b53a6d42c45014fbe5ff3137d1cf2df [diff] |
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 faa9d89..c347d68 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'(<string>|test_descr)$') + DeprecationWarning, r'(<string>|%s)$' % __name__) def veris(a, b): if a is not b: