mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
The warning filter was ineffective when this module was invoked as a
script.
This commit is contained in:
parent
92cf95f45b
commit
155a34d2e5
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import warnings
|
||||||
|
|
||||||
warnings.filterwarnings("ignore",
|
warnings.filterwarnings("ignore",
|
||||||
r'complex divmod\(\), // and % are deprecated$',
|
r'complex divmod\(\), // and % are deprecated$',
|
||||||
DeprecationWarning, r'(<string>|test_descr)$')
|
DeprecationWarning, r'(<string>|%s)$' % __name__)
|
||||||
|
|
||||||
def veris(a, b):
|
def veris(a, b):
|
||||||
if a is not b:
|
if a is not b:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue