[Python-checkins] CVS: python/dist/src/Lib/test/output test_pickle,1.1,1.2 test_cpickle,1.1,1.2
Jeremy Hylton
python-dev@python.org
Fri, 15 Sep 2000 08:14:54 -0700
Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25891/Lib/test/output
Modified Files:
test_pickle test_cpickle
Log Message:
Fix Bug #114293:
Strings are unpickled by calling eval on the string's repr. This
change makes pickle work like cPickle; it checks if the pickled
string is safe to eval and raises ValueError if it is not.
test suite modifications:
Verify that pickle catches a variety of insecure string pickles
Make test_pickle and test_cpickle use exactly the same test suite
Add test for pickling recursive object
Index: test_pickle
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_pickle,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_pickle 1999/03/25 22:38:49 1.1
--- test_pickle 2000/09/15 15:14:51 1.2
***************
*** 10,11 ****
--- 10,13 ----
loads() BINDATA
ok
+ dumps() RECURSIVE
+ ok
Index: test_cpickle
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_cpickle,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_cpickle 1999/03/25 22:38:48 1.1
--- test_cpickle 2000/09/15 15:14:51 1.2
***************
*** 10,11 ****
--- 10,25 ----
loads() BINDATA
ok
+ dumps() RECURSIVE
+ ok
+ dumps()
+ loads()
+ ok
+ loads() DATA
+ ok
+ dumps() binary
+ loads() binary
+ ok
+ loads() BINDATA
+ ok
+ dumps() RECURSIVE
+ ok