From: Benjamin Peterson Date: Sat, 10 Jul 2010 15:14:45 +0000 (+0000) Subject: ValueError is eventually what we want to move to, I suppose X-Git-Tag: v3.2a1~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d62f5bbfe1c865165fd1285bb44fa29eb3b8bde;p=python ValueError is eventually what we want to move to, I suppose --- 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