mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Refresh the documentation for the test.test_support module.
This commit is contained in:
parent
400efc2259
commit
fc8a1ed70e
2 changed files with 60 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue