diff options
author | Guido van Rossum <guido@python.org> | 2002-04-05 20:57:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-05 20:57:02 (GMT) |
commit | d1bfe5e5fdb65c1ee0cd344c1446fef3656be2b4 (patch) | |
tree | 5497c1e2ec2c9526a865697bc3bc79ca0357e732 /Lib/test/test_bool.py | |
parent | 9651198db4f87919f874d516c33f710bd44ea3e5 (diff) | |
download | cpython-d1bfe5e5fdb65c1ee0cd344c1446fef3656be2b4.zip cpython-d1bfe5e5fdb65c1ee0cd344c1446fef3656be2b4.tar.gz cpython-d1bfe5e5fdb65c1ee0cd344c1446fef3656be2b4.tar.bz2 |
Add tests for binary pickles.
Diffstat (limited to 'Lib/test/test_bool.py')
-rw-r--r-- | Lib/test/test_bool.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py index 0a60a3b..388cd4b 100644 --- a/Lib/test/test_bool.py +++ b/Lib/test/test_bool.py @@ -213,22 +213,34 @@ veris(marshal.loads(marshal.dumps(False)), False) import pickle veris(pickle.loads(pickle.dumps(True)), True) veris(pickle.loads(pickle.dumps(False)), False) +veris(pickle.loads(pickle.dumps(True, True)), True) +veris(pickle.loads(pickle.dumps(False, True)), False) import cPickle veris(cPickle.loads(cPickle.dumps(True)), True) veris(cPickle.loads(cPickle.dumps(False)), False) +veris(cPickle.loads(cPickle.dumps(True, True)), True) +veris(cPickle.loads(cPickle.dumps(False, True)), False) veris(pickle.loads(cPickle.dumps(True)), True) veris(pickle.loads(cPickle.dumps(False)), False) +veris(pickle.loads(cPickle.dumps(True, True)), True) +veris(pickle.loads(cPickle.dumps(False, True)), False) veris(cPickle.loads(pickle.dumps(True)), True) veris(cPickle.loads(pickle.dumps(False)), False) +veris(cPickle.loads(pickle.dumps(True, True)), True) +veris(cPickle.loads(pickle.dumps(False, True)), False) # Test for specific backwards-compatible pickle values vereq(pickle.dumps(True), "I01\n.") vereq(pickle.dumps(False), "I00\n.") vereq(cPickle.dumps(True), "I01\n.") vereq(cPickle.dumps(False), "I00\n.") +vereq(pickle.dumps(True, True), "I01\n.") +vereq(pickle.dumps(False, True), "I00\n.") +vereq(cPickle.dumps(True, True), "I01\n.") +vereq(cPickle.dumps(False, True), "I00\n.") if verbose: print "All OK" |