Commit 7048d4bb authored by Benjamin Peterson's avatar Benjamin Peterson

OverflowError is fine

parent e86512ca
......@@ -234,7 +234,8 @@ class StructTest(unittest.TestCase):
b'\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