From 0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 10 Jul 2010 15:14:45 +0000 Subject: ValueError is eventually what we want to move to, I suppose --- Lib/test/test_struct.py | 4 ++-- 1 file 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 -- cgit v0.12