summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-30223: Fix test_xpickle for Python 2.4. (#1395)Serhiy Storchaka2017-05-021-3/+1
|
* [2.7] bpo-30223: Add Lib/test/__main__.py. (#1373)Serhiy Storchaka2017-05-021-0/+2
| | | | | | To unify running tests in Python 2.7 and Python 3, the test package can be run as a script. This is equivalent to running the test.regrtest module as a script.
* Issue #28925: cPickle now correctly propagates errors when unpickle instancesSerhiy Storchaka2016-12-151-0/+43
| | | | of old-style classes.
* Issue #28515: Fixed py3k warnings.Serhiy Storchaka2016-10-251-0/+3
|
* Issue #26486: Removed pickle test that doesn't work in 2.7 on 64-bit platform.Serhiy Storchaka2016-03-081-11/+0
|
* Issue #26486: Backported some pickle tests from 3.x.Serhiy Storchaka2016-03-061-4/+208
|
* Make catched exceptions more specific and correct a comment.Serhiy Storchaka2015-12-301-3/+4
|
* Fixed yet one syntax error in test_xpickle in Python 2.5.Serhiy Storchaka2015-11-291-1/+1
|
* Trying to fix test_xpickle with python 2.4 and 2.5.Serhiy Storchaka2015-11-291-2/+2
|
* Got rid of "with" for compatibility test_xpickle with Python 2.5.Serhiy Storchaka2015-11-291-4/+11
|
* Issue #25761: Added more test cases for testing unpickling broken data.Serhiy Storchaka2015-11-291-76/+151
| | | | Output raised exception at verbose level 2 (-vv).
* Issue #23914: Fix test_xpickle with python 2.4 and 2.5Zachary Ware2015-11-271-53/+52
| | | | Remove 'b' prefix from strings, remove unused import.
* Issue #23914: Fixed SystemError raised by unpickler on broken pickle data.Serhiy Storchaka2015-11-231-1/+73
|
* Issue #892902: Fixed pickling recursive objects.Serhiy Storchaka2015-11-071-4/+101
|
* Removed the "b" string prefix to make test_xpickle compatible with Python 2.5.Serhiy Storchaka2015-10-021-33/+33
|
* Backported additional unpickling tests from 3.x.Serhiy Storchaka2015-09-291-4/+160
|
* Moved unpickling tests with prepickled data to separate class.Serhiy Storchaka2015-09-291-38/+45
|
* Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle.Alexandre Vassalotti2013-12-011-9/+0
|
* Issue #6477: Added pickling support for singletons and their types.Alexandre Vassalotti2013-12-011-0/+9
|
* Issue #16231: Allow false values other than None to be used as persistent IDs.Alexandre Vassalotti2013-11-301-18/+22
|
* Issue #17710: Fix cPickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-0/+2
|
* G -> M (closes #17533)Benjamin Peterson2013-03-301-1/+1
|
* fall back when an old test_support doesn't have various data and functions ↵Benjamin Peterson2013-03-301-2/+8
| | | | (closes #17533)
* #17346: make sure pickle tests are run against all protocols.Ezio Melotti2013-03-041-2/+2
|
* Issue #13555: cPickle now supports files larger than 2 GiB.Serhiy Storchaka2013-02-121-1/+30
|
* Silence a couple of warnings.Ezio Melotti2011-11-061-0/+2
|
* Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-041-0/+21
| | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
* use assert[Not]In where appropriateEzio Melotti2010-01-231-4/+4
|
* Issue #7455: Fix possible crash in cPickle on invalid input. Patch byAntoine Pitrou2010-01-071-0/+9
| | | | Florent Xicluna.
* Issue 7128: Removed reference to the non-existent copyreg module.Alexandre Vassalotti2009-11-241-0/+10
| | | | | | | | | The reference to copyreg was a unnoticed leftover from the compatibility support for the grand renaming of the standard library in Python 3. The compatibility support was reverted in r63493, but not completely as this patch shows. Based on a patch by Amaury Forgeot d'Arc.
* #6553: crash in cPickle.load(), when given a StringIO with incomplete data.Amaury Forgeot d'Arc2009-07-231-0/+5
| | | | Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-13/+13
|
* Issue 5794: fix cPickle's unpickling of recursive tuples.Collin Winter2009-05-261-0/+10
|
* Isue #5084: unpickling now interns the attribute names of pickled objects,Antoine Pitrou2009-05-021-0/+14
| | | | | saving memory and avoiding growth in size of subsequent pickles. Proposal and original patch by Jake McGuire.
* Issue 5665: add more pickling tests.Collin Winter2009-04-091-12/+182
| | | | | | | | | | | - 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.
* Issue #1672332: Fix unpickling of subnormal floats, which was raisingMark Dickinson2009-01-241-0/+10
| | | | | ValueError on some platforms as a result of the platform strtod setting errno on underflow.
* Fix bogus unicode tests in pickletester.Alexandre Vassalotti2008-12-271-2/+2
|
* Fix issue #4730: cPickle corrupts high-unicode strings.Alexandre Vassalotti2008-12-271-2/+9
| | | | | Update outdated copy of PyUnicode_EncodeRawUnicodeEscape. Add a test case.
* Issue #4176: Pickle would crash the interpreter when a __reduce__ functionAmaury Forgeot d'Arc2008-10-301-0/+23
| | | | | | | | | does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) A list is not an iterator... Will backport to 2.6 and 2.5.
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-9/+9
|
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-9/+9
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* Patch #1462488: prevent a segfault in object_reduce_ex() by splittingŽiga Seilnacht2007-03-151-0/+32
| | | | | the implementation for __reduce__ and __reduce_ex__ into two separate functions. Fixes bug #931877. Will backport.
* Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0.Georg Brandl2006-04-301-1/+7
| | | | | On the way, add a decorator to test_support to facilitate running single test functions in different locales with automatic cleanup.
* Patch #995766: Keyword argument support in cPickle.Martin v. Löwis2004-07-271-0/+10
|
* Deleting cyclic object comparison.Armin Rigo2003-10-281-15/+10
| | | | | SF patch 825639 http://mail.python.org/pipermail/python-dev/2003-October/039445.html
* MyComplex now works.Guido van Rossum2003-03-021-1/+1
|
* test_load_from_canned_string(): Created a DATA2 string to test a cannedTim Peters2003-03-021-2/+66
| | | | proto 2 pickle too.
* Three test cases for __reduce_ex__. This fails for cPickle, until TimGuido van Rossum2003-02-181-0/+52
| | | | checks in his changes to support this in cPickle.c.
* cPickle.c, load_build(): Taught cPickle how to pick apartTim Peters2003-02-151-6/+1
| | | | | | | | | | | | | | | | | | the optional proto 2 slot state. pickle.py, load_build(): CAUTION: Noted that cPickle's load_build and pickle's load_build really don't do the same things with the state, and didn't before this patch either. cPickle never tries to do .update(), and has no backoff if instance.__dict__ can't be retrieved. There are no tests that can tell the difference, and part of what cPickle's load_build() did looked accidental to me, so I don't know what the true intent is here. pickletester.py, test_pickle.py: Got rid of the hack for exempting cPickle from running some of the proto 2 tests. dictobject.c, PyDict_Next(): documented intended use.
* cPickle produces NEWOBJ appropriately now. It still doesn't knowTim Peters2003-02-141-6/+6
| | | | how to unpickle the new slot-full state tuples.