mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Make sure warnings are not suppressed when testing for the raised
DeprecationWarning.
This commit is contained in:
parent
d5a0985265
commit
ddf7a4214e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue