summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-08-14 05:51:06 +0000
committerBrett Cannon <bcannon@gmail.com>2007-08-14 05:51:06 +0000
commit2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd (patch)
treedcdfe00aac7f3bdbe594720cc8dac33541863c04 /Lib/test/test_exceptions.py
parentbe7abbb9d9d886d83c6990f7c68e8e4f84b57c8d (diff)
downloadcpython-git-2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd.tar.gz
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.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 1f7105eaec..657cbc5327 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -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: