ValueError is eventually what we want to move to, I suppose
This commit is contained in:
parent
522c32a7e3
commit
0d62f5bbfe
|
@ -234,8 +234,8 @@ class StructTest(unittest.TestCase):
|
||||||
b'\x01' + got)
|
b'\x01' + got)
|
||||||
else:
|
else:
|
||||||
# x is out of range -- verify pack realizes that.
|
# x is out of range -- verify pack realizes that.
|
||||||
self.assertRaises((OverflowError, struct.error), pack,
|
self.assertRaises((OverflowError, ValueError, struct.error),
|
||||||
format, x)
|
pack, format, x)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
from random import randrange
|
from random import randrange
|
||||||
|
|
Loading…
Reference in New Issue