]> granicus.if.org Git - python/commit
Issue 5665: add more pickling tests.
authorCollin Winter <collinw@gmail.com>
Thu, 9 Apr 2009 16:46:46 +0000 (16:46 +0000)
committerCollin Winter <collinw@gmail.com>
Thu, 9 Apr 2009 16:46:46 +0000 (16:46 +0000)
commitf8089c7789d61979fd195e67186a77039534cc87
treec4373d2f33fd36ecb5e9247ad9f829e6f57ae3e7
parent5963185b2329856e94abe851fb2333f6bcee4347
Issue 5665: add more pickling tests.

- Add tests for the module-level load() and dump() functions.
- Add tests for cPickle's internal data structures, stressing workloads
with many gets/puts.
- Add tests for the Pickler and Unpickler classes, in particular the
memo attribute.
- test_xpickle is extended to test backwards compatibility with Python
2.4, 2.5 and 2.6 by round-tripping pickled objects through a worker
process. This is guarded with a regrtest -u xpickle resource.
Lib/test/pickletester.py
Lib/test/regrtest.py
Lib/test/test_cpickle.py
Lib/test/test_pickle.py
Lib/test/test_xpickle.py