[Python-checkins] r82735 - python/branches/py3k/Lib/test/test_struct.py
benjamin.peterson
python-checkins at python.org
Fri Jul 9 15:20:40 CEST 2010
Author: benjamin.peterson
Date: Fri Jul 9 15:20:40 2010
New Revision: 82735
Log:
OverflowError is fine
Modified:
python/branches/py3k/Lib/test/test_struct.py
Modified: python/branches/py3k/Lib/test/test_struct.py
==============================================================================
--- python/branches/py3k/Lib/test/test_struct.py (original)
+++ python/branches/py3k/Lib/test/test_struct.py Fri Jul 9 15:20:40 2010
@@ -234,7 +234,8 @@
b'\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
More information about the Python-checkins
mailing list