summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-08-14 05:51:06 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-08-14 05:51:06 (GMT)
commit2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd (patch)
treedcdfe00aac7f3bdbe594720cc8dac33541863c04 /Lib/test/test_warnings.py
parentbe7abbb9d9d886d83c6990f7c68e8e4f84b57c8d (diff)
downloadcpython-2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd.zip
cpython-2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd.tar.gz
cpython-2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd.tar.bz2
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_warnings.py')
-rw-r--r--Lib/test/test_warnings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py
index 283806f..cca6329 100644
--- a/Lib/test/test_warnings.py
+++ b/Lib/test/test_warnings.py
@@ -61,7 +61,7 @@ class TestModule(unittest.TestCase):
def test_options(self):
# Uses the private _setoption() function to test the parsing
# of command-line warning arguments
- with test_support.guard_warnings_filter():
+ with test_support.catch_warning():
self.assertRaises(warnings._OptionError,
warnings._setoption, '1:2:3:4:5:6')
self.assertRaises(warnings._OptionError,