Refresh the documentation for the test.test_support module.

This commit is contained in:
Florent Xicluna 2010-03-07 19:14:12 +00:00
parent 400efc2259
commit fc8a1ed70e
2 changed files with 60 additions and 28 deletions

View file

@ -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