Kaydet (Commit) 306d88fc authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 82735 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82735 | benjamin.peterson | 2010-07-09 08:20:40 -0500 (Fri, 09 Jul 2010) | 1 line

  OverflowError is fine
........
üst 6251496e
......@@ -243,7 +243,8 @@ class StructTest(unittest.TestCase):
'\x01' + got)
else:
# x is out of range -- verify pack realizes that.
self.assertRaises(struct.error, pack, format, x)
self.assertRaises((OverflowError, struct.error), pack,
format, x)
def run(self):
from random import randrange
......
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