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: