Commit 0d62f5bb authored by Benjamin Peterson's avatar Benjamin Peterson

ValueError is eventually what we want to move to, I suppose

parent 522c32a7
......@@ -234,8 +234,8 @@ class StructTest(unittest.TestCase):
b'\x01' + got)
else:
# x is out of range -- verify pack realizes that.
self.assertRaises((OverflowError, struct.error), pack,
format, x)
self.assertRaises((OverflowError, ValueError, 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