diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-07-10 15:14:45 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-07-10 15:14:45 +0000 |
| commit | 0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde (patch) | |
| tree | 360933a99cdf3d2bcef67bdbbd15418b5150fc9d /Lib/test/test_struct.py | |
| parent | 522c32a7e3d8ea720aaeb42ecc25833694d555ad (diff) | |
| download | cpython-git-0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde.tar.gz | |
ValueError is eventually what we want to move to, I suppose
Diffstat (limited to 'Lib/test/test_struct.py')
| -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 7cde5903af..d3840cc996 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 |
