summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-07-13 15:23:42 (GMT)
committerGuido van Rossum <guido@python.org>1999-07-13 15:23:42 (GMT)
commitba508a21e028811d9da8344fea574f3d0c88657a (patch)
tree1d884399f98bdecd561d6423b4f3eca560102ffc /Lib/test
parent2f80d96c043d11e51b9df119c99c8ee59df1ba6d (diff)
downloadcpython-ba508a21e028811d9da8344fea574f3d0c88657a.zip
cpython-ba508a21e028811d9da8344fea574f3d0c88657a.tar.gz
cpython-ba508a21e028811d9da8344fea574f3d0c88657a.tar.bz2
Add test case for bug just fixed by Stephen Turner.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_cpickle.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py
index 9088eb7..7cc4b1f 100644
--- a/Lib/test/test_cpickle.py
+++ b/Lib/test/test_cpickle.py
@@ -93,4 +93,15 @@ def dotest():
print "load from closed file should raise IOError"
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()