[Python-checkins] r82777 - python/branches/py3k/Lib/test/test_struct.py

benjamin.peterson python-checkins at python.org
Sat Jul 10 17:14:45 CEST 2010


Author: benjamin.peterson
Date: Sat Jul 10 17:14:45 2010
New Revision: 82777
Log:
ValueError is eventually what we want to move to, I suppose
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	Sat Jul 10 17:14:45 2010
@@ -234,8 +234,8 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /