From 715812667366cc747ac78598d462dd7ff75d4bb2 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 19 Sep 2000 14:42:09 +0000 Subject: [PATCH] Fixed the error reporting (raise of TestFailed) for the zip() and zip(None) tests. Found by Finn Bock a while ago. --- Lib/test/test_b2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 84d3454f27..e7553ed1f5 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' -- 2.40.0