From 306d88fc761560ced3765107d07c503c48637336 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 9 Jul 2010 13:21:35 +0000 Subject: [PATCH] Merged revisions 82735 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82735 | benjamin.peterson | 2010-07-09 08:20:40 -0500 (Fri, 09 Jul 2010) | 1 line OverflowError is fine ........ --- Lib/test/test_struct.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index f376ac3a9d4..e5241b35272 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -243,7 +243,8 @@ class StructTest(unittest.TestCase): '\x01' + got) else: # x is out of range -- verify pack realizes that. - self.assertRaises(struct.error, pack, format, x) + self.assertRaises((OverflowError, struct.error), pack, + format, x) def run(self): from random import randrange