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
........
This commit is contained in:
Benjamin Peterson 2010-07-09 13:21:35 +00:00
parent 6251496e98
commit 306d88fc76
1 changed files with 2 additions and 1 deletions

View File

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