summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
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: