]> granicus.if.org Git - python/commitdiff
Merged revisions 82777 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Sat, 10 Jul 2010 15:17:08 +0000 (15:17 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 10 Jul 2010 15:17:08 +0000 (15:17 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82777 | benjamin.peterson | 2010-07-10 10:14:45 -0500 (Sat, 10 Jul 2010) | 1 line

  ValueError is eventually what we want to move to, I suppose
........

Lib/test/test_struct.py

index 816cedbb11dfe78ddefa90f80bb85e5a52337e68..5a63135a1a35f8364079d1721419daf15e7c4071 100644 (file)
@@ -243,8 +243,8 @@ class StructTest(unittest.TestCase):
                                                                  '\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