summaryrefslogtreecommitdiff
path: root/Lib/test/test_struct.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r--Lib/test/test_struct.py4
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