Kaydet (Commit) 71581266 authored tarafından Barry Warsaw's avatar Barry Warsaw

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

zip(None) tests.  Found by Finn Bock a while ago.
üst 4622e146
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment