Make sure warnings are not suppressed when testing for the raised

DeprecationWarning.
This commit is contained in:
Brett Cannon 2008-05-10 03:16:38 +00:00
parent d5a0985265
commit ddf7a4214e
1 changed files with 1 additions and 1 deletions

View File

@ -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: