mirror of https://github.com/python/cpython
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:
parent
4622e146ee
commit
7158126673
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue