diff options
author | Barry Warsaw <barry@python.org> | 2000-09-19 14:42:09 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-09-19 14:42:09 (GMT) |
commit | 715812667366cc747ac78598d462dd7ff75d4bb2 (patch) | |
tree | 888d9baee4502700846ebf3cb4c4b7a03de3a76f /Lib/test/test_b2.py | |
parent | 4622e146ee77148ddddf6ef1ecfcf306b5286262 (diff) | |
download | cpython-715812667366cc747ac78598d462dd7ff75d4bb2.zip cpython-715812667366cc747ac78598d462dd7ff75d4bb2.tar.gz cpython-715812667366cc747ac78598d462dd7ff75d4bb2.tar.bz2 |
Fixed the error reporting (raise of TestFailed) for the zip() and
zip(None) tests. Found by Finn Bock a while ago.
Diffstat (limited to 'Lib/test/test_b2.py')
-rw-r--r-- | Lib/test/test_b2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 84d3454..e7553ed 100644 --- a/Lib/test/test_b2.py +++ b/Lib/test/test_b2.py @@ -276,7 +276,7 @@ except TypeError: exc = 1 except: e = sys.exc_info()[0] - raise TestFailed, 'zip() - no args, expected TypeError, got', e + raise TestFailed, 'zip() - no args, expected TypeError, got %s' % e if not exc: raise TestFailed, 'zip() - no args, missing expected TypeError' @@ -287,7 +287,7 @@ except TypeError: exc = 1 except: e = sys.exc_info()[0] - raise TestFailed, 'zip(None) - expected TypeError, got', e + raise TestFailed, 'zip(None) - expected TypeError, got %s' % e if not exc: raise TestFailed, 'zip(None) - missing expected TypeError' |