mirror of https://github.com/python/cpython.git
The warning filter was ineffective when this module was invoked as a
script.
This commit is contained in:
parent
92cf95f45b
commit
155a34d2e5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue