diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-07-10 15:14:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-07-10 15:14:45 (GMT) |
commit | 0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde (patch) | |
tree | 360933a99cdf3d2bcef67bdbbd15418b5150fc9d | |
parent | 522c32a7e3d8ea720aaeb42ecc25833694d555ad (diff) | |
download | cpython-0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde.zip cpython-0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde.tar.gz cpython-0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde.tar.bz2 |
ValueError is eventually what we want to move to, I suppose
-rw-r--r-- | Lib/test/test_struct.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 7cde590..d3840cc 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -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 |