mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Remove test.test_support.guard_warnings_filter.
test.test_support.catch_warning is more full-featured and provides the same functionality. Since guard_warnings_filter was added in 2.6 there is no backwards-compatibility issues.
This commit is contained in:
parent
be7abbb9d9
commit
2ee4128e9b
10 changed files with 18 additions and 32 deletions
|
@ -6,7 +6,7 @@ import unittest
|
|||
import pickle, cPickle
|
||||
|
||||
from test.test_support import (TESTFN, unlink, run_unittest,
|
||||
guard_warnings_filter)
|
||||
catch_warning)
|
||||
from test.test_pep352 import ignore_message_warning
|
||||
|
||||
# XXX This is not really enough, each *operation* should be tested!
|
||||
|
@ -274,7 +274,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
except NameError:
|
||||
pass
|
||||
|
||||
with guard_warnings_filter():
|
||||
with catch_warning():
|
||||
ignore_message_warning()
|
||||
for exc, args, expected in exceptionList:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue