Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_support.py @ 59443:e45ff027482f legacy-trunk
Refresh the documentation for the test.test_support module.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Sun, 07 Mar 2010 19:14:12 +0000 |
| parents | e23cba03cc4b |
| children | 269a12a50123 |
line wrap: on
line diff
--- a/Lib/test/test_support.py Sun Mar 07 17:12:23 2010 +0000 +++ b/Lib/test/test_support.py Sun Mar 07 19:14:12 2010 +0000 @@ -539,11 +539,11 @@ 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
