mirror of
https://github.com/python/cpython.git
synced 2026-05-29 15:45:56 -04:00
The warning filter was ineffective when this module was invoked as a
script.
This commit is contained in:
@@ -6,7 +6,7 @@ import warnings
|
||||
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user