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:
parent
6251496e98
commit
306d88fc76
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue