Fixed the error reporting (raise of TestFailed) for the zip() and

zip(None) tests.  Found by Finn Bock a while ago.
This commit is contained in:
Barry Warsaw 2000-09-19 14:42:09 +00:00
parent 4622e146ee
commit 7158126673
1 changed files with 2 additions and 2 deletions

View File

@ -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'