mirror of
https://github.com/python/cpython.git
synced 2025-10-07 23:51:16 +00:00
ValueError is eventually what we want to move to, I suppose
This commit is contained in:
parent
522c32a7e3
commit
0d62f5bbfe
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue