Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7158126

Browse files
committed
Fixed the error reporting (raise of TestFailed) for the zip() and
zip(None) tests. Found by Finn Bock a while ago.
1 parent 4622e14 commit 7158126

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_b2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __getitem__(self, i):
276276
exc = 1
277277
except:
278278
e = sys.exc_info()[0]
279-
raise TestFailed, 'zip() - no args, expected TypeError, got', e
279+
raise TestFailed, 'zip() - no args, expected TypeError, got %s' % e
280280
if not exc:
281281
raise TestFailed, 'zip() - no args, missing expected TypeError'
282282

@@ -287,7 +287,7 @@ def __getitem__(self, i):
287287
exc = 1
288288
except:
289289
e = sys.exc_info()[0]
290-
raise TestFailed, 'zip(None) - expected TypeError, got', e
290+
raise TestFailed, 'zip(None) - expected TypeError, got %s' % e
291291
if not exc:
292292
raise TestFailed, 'zip(None) - missing expected TypeError'
293293

0 commit comments

Comments
 (0)