summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 19:14:12 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 19:14:12 (GMT)
commitfc8a1ed70e2586871e06cea60dfd25a96ed5a313 (patch)
treed2daa70afa6baeb33dc908824e52fc6dced62ebb /Lib/test
parent400efc22591c33b1d6fb077d98661a9b9adbcaf8 (diff)
downloadcpython-fc8a1ed70e2586871e06cea60dfd25a96ed5a313.zip
cpython-fc8a1ed70e2586871e06cea60dfd25a96ed5a313.tar.gz
cpython-fc8a1ed70e2586871e06cea60dfd25a96ed5a313.tar.bz2
Refresh the documentation for the test.test_support module.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_support.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 0824bb3..8f66933 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -539,11 +539,11 @@ def _filterwarnings(filters, quiet=False):
if not seen and not quiet:
# This filter caught nothing
missing.append((msg, cat.__name__))
- for exc in reraise:
- raise AssertionError("unhandled warning %r" % exc)
- for filter in missing:
- raise AssertionError("filter (%r, %s) did not caught any warning" %
- filter)
+ if reraise:
+ raise AssertionError("unhandled warning %r" % reraise[0])
+ if missing:
+ raise AssertionError("filter (%r, %s) did not catch any warning" %
+ missing[0])
@contextlib.contextmanager