mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
Merged revisions 82777 via svnmerge from
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 ........
This commit is contained in:
parent
e800b27519
commit
9d8c456696
1 changed files with 2 additions and 2 deletions
|
|
@ -243,8 +243,8 @@ def test_one(self, x, pack=struct.pack,
|
|||
'\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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue