From: Barry Warsaw Date: Tue, 19 Sep 2000 14:42:09 +0000 (+0000) Subject: Fixed the error reporting (raise of TestFailed) for the zip() and X-Git-Tag: v2.0b2~201 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=715812667366cc747ac78598d462dd7ff75d4bb2;p=thirdparty%2FPython%2Fcpython.git Fixed the error reporting (raise of TestFailed) for the zip() and zip(None) tests. Found by Finn Bock a while ago. --- diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 84d3454f2792..e7553ed1f5d0 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'