summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cpickle.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue 5794: fix cPickle's unpickling of recursive tuples.Collin Winter2009-05-261-0/+5
|
* Issue 5665: add more pickling tests.Collin Winter2009-04-091-0/+8
| | | | | | | | | | | - 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.
* AttributeError can be thrown during recursion errorsBenjamin Peterson2009-03-221-1/+1
|
* Fix #2702, with a correct accounting of recursion.Facundo Batista2008-06-301-15/+11
|
* Reverting the patch from #3165, as it broke otherFacundo Batista2008-06-251-10/+22
| | | | | | | | | behaviours. I left the original test commented out (note that that test came from #2702, which seems to have a problem in FreeBSD and Windows, but not in Linux). I included a new test, to watch over the now-broken behaviour, I took it from #3179.
* Fixing the problem stated in issue 2702 with the patch submittedFacundo Batista2008-06-221-2/+18
| | | | | in the issue 3165. Now cPickle does not fails with uncontrolled behaviour when pickling into a very deep nested structure.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Use absolute import.Neal Norwitz2006-03-241-1/+1
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-7/+6
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* SF bug 690622: test_cpickle overflows stack on MacOS9.Tim Peters2003-02-211-1/+5
| | | | | | | | test_nonrecursive_deep(): Reduced nesting depth to 60. Not a bugfix candidate. 2.3 increased the number of stack frames needed to pickle a list (in order to get implement the "list batching" unpickling memory optimization new in 2.3).
* Renamed "bin" arguments to "proto". Note that this test currentlyTim Peters2003-01-281-6/+6
| | | | fails, for reasons unrelated to this patch.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Merge of the release22 branch changes back into the trunk.Barry Warsaw2001-12-211-0/+7
|
* Fix the test control support for the pickle & cPickle tests so the tests runFred Drake2001-12-191-5/+12
| | | | under regrtest.
* Whitespace normalization.Tim Peters2001-10-181-1/+1
|
* Covert pickle tests to use unittest.Jeremy Hylton2001-10-151-2/+85
| | | | | Extend tests to cover a few more cases. For cPickle, test several of the undocumented features.
* Reorganize pickle/cPickle testing so the tests pass regardless of the orderTim Peters2001-01-221-4/+2
| | | | they're run.
* Fix Bug #114293:Jeremy Hylton2000-09-151-104/+2
| | | | | | | | | | | 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
* Charles Waldman writes:Guido van Rossum2000-04-211-4/+4
| | | | | | | | | | """ In the course of debugging this I also saw that cPickle is inconsistent with pickle - if you attempt a pickle.load or pickle.dump on a closed file, you get a ValueError, whereas the corresponding cPickle operations give an IOError. Since cPickle is advertised as being compatible with pickle, I changed these exceptions to match. """
* Add test case for bug just fixed by Stephen Turner.Guido van Rossum1999-07-131-0/+11
|
* Jonathan Giddy write:Guido van Rossum1999-04-011-0/+1
| | | | | In test_cpickle.py, the module os got imported, but the line to remove the temp file has gone missing.
* Test protection against picling to/from closed (real) file.Guido van Rossum1999-03-291-0/+20
|
* Basic regr tests for pickle/cPickleGuido van Rossum1999-03-251-0/+75