mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add test case for bug just fixed by Stephen Turner.
This commit is contained in:
parent
2f80d96c04
commit
ba508a21e0
1 changed files with 11 additions and 0 deletions
|
@ -93,4 +93,15 @@ def dotest():
|
||||||
print "load from closed file should raise IOError"
|
print "load from closed file should raise IOError"
|
||||||
os.remove(fn)
|
os.remove(fn)
|
||||||
|
|
||||||
|
# Test specific bad cases
|
||||||
|
for i in range(10):
|
||||||
|
try:
|
||||||
|
x = cPickle.loads('garyp')
|
||||||
|
except cPickle.BadPickleGet, y:
|
||||||
|
del y
|
||||||
|
else:
|
||||||
|
print "unexpected success!"
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
dotest()
|
dotest()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue