Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 155a34d

Browse files
committed
The warning filter was ineffective when this module was invoked as a
script.
1 parent 92cf95f commit 155a34d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
warnings.filterwarnings("ignore",
88
r'complex divmod\(\), // and % are deprecated$',
9-
DeprecationWarning, r'(<string>|test_descr)$')
9+
DeprecationWarning, r'(<string>|%s)$' % __name__)
1010

1111
def veris(a, b):
1212
if a is not b:

0 commit comments

Comments
 (0)