mirror of https://github.com/python/cpython.git
Add test case for bug just fixed by Stephen Turner.
This commit is contained in:
parent
2f80d96c04
commit
ba508a21e0
|
@ -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…
Reference in New Issue