diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 22:41:45 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 22:41:45 (GMT) |
commit | 88516a60398fff92dbf83c6ad17b03233f6db680 (patch) | |
tree | 7d4e06e3509b6196318028574d3d5bffae3a4410 /Lib/test/test_generators.py | |
parent | a8925547815b5df48b5664b1cd6656d4234f759c (diff) | |
download | cpython-88516a60398fff92dbf83c6ad17b03233f6db680.zip cpython-88516a60398fff92dbf83c6ad17b03233f6db680.tar.gz cpython-88516a60398fff92dbf83c6ad17b03233f6db680.tar.bz2 |
When printing an unraisable error, don't print exceptions. before the name.
This duplicates the behavior whening normally printing exceptions.
Diffstat (limited to 'Lib/test/test_generators.py')
-rw-r--r-- | Lib/test/test_generators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index ee36413..2b0d47d 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1681,7 +1681,7 @@ Our ill-behaved code should be invoked during GC: >>> g.next() >>> del g >>> sys.stderr.getvalue().startswith( -... "Exception exceptions.RuntimeError: 'generator ignored GeneratorExit' in " +... "Exception RuntimeError: 'generator ignored GeneratorExit' in " ... ) True >>> sys.stderr = old @@ -1798,7 +1798,7 @@ to test. ... del l ... err = sys.stderr.getvalue().strip() ... err.startswith( -... "Exception exceptions.RuntimeError: RuntimeError() in <" +... "Exception RuntimeError: RuntimeError() in <" ... ) ... err.endswith("> ignored") ... len(err.splitlines()) |