This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
cpython
mirror of
https://github.com/python/cpython
Watch
4
Star
1
Fork
You've already forked cpython
0
Code
Issues
Releases
Wiki
Activity
da6daee439
cpython
/
Lib
/
test
/
test_cpickle.py
6 lines
89 B
Python
Raw
Normal View
History
Unescape
Escape
Basic regr tests for pickle/cPickle
1999-03-25 18:38:49 -04:00
# Test the cPickle module
import
cPickle
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
2000-09-15 12:14:51 -03:00
import
test_pickle
test_pickle
.
dotest
(
cPickle
)