mirror of https://github.com/python/cpython
Make sure warnings are not suppressed when testing for the raised
DeprecationWarning.
This commit is contained in:
parent
d5a0985265
commit
ddf7a4214e
|
@ -142,7 +142,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
original_module = sys.modules[module_name]
|
||||
del sys.modules[module_name]
|
||||
try:
|
||||
with catch_warning() as w:
|
||||
with catch_warning(record=False) as w:
|
||||
warnings.filterwarnings("error", ".+ removed",
|
||||
DeprecationWarning)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue