summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Moved unpickling tests with prepickled data to separate class.Serhiy Storchaka2015-09-291-209/+215
| |
* | merge 3.4Benjamin Peterson2015-07-021-1/+1
|\ \ | |/
| * use correct __new__ method (closes #24552)Benjamin Peterson2015-07-021-1/+1
| |
* | merge 3.4 (#24552)Benjamin Peterson2015-07-021-0/+12
|\ \ | |/
| * fix use after free (closes #24552)Benjamin Peterson2015-07-021-0/+12
| |
* | Issue #23611: Serializing more "lookupable" objects (such as unbound methodsSerhiy Storchaka2015-03-311-4/+15
| | | | | | | | or nested classes) now are supported with pickle protocols < 4.
* | Issue #18473: Fixed 2to3 and 3to2 compatible pickle mappings.Serhiy Storchaka2015-03-311-1/+48
|\ \ | |/ | | | | | | | | | | | | Fixed ambigious reverse mappings. Added many new mappings. Import mapping is no longer applied to modules already mapped with full name mapping. Added tests for compatible pickling and unpickling and for consistency of _compat_pickle mappings.
| * Issue #18473: Fixed 2to3 and 3to2 compatible pickle mappings.Serhiy Storchaka2015-03-311-1/+48
| | | | | | | | | | | | | | | | Fixed ambigious reverse mappings. Added many new mappings. Import mapping is no longer applied to modules already mapped with full name mapping. Added tests for compatible pickling and unpickling and for consistency of _compat_pickle mappings.
* | Use pickled data compatible with Python 2 for testing protocols 0-2.Serhiy Storchaka2015-02-151-216/+217
|\ \ | |/
| * Use pickled data compatible with Python 2 for testing protocols 0-2.Serhiy Storchaka2015-02-151-216/+217
| |
* | Issue #23094: Fixed readline with frames in Python implementation of pickle.Serhiy Storchaka2015-01-261-0/+8
|\ \ | |/
| * Issue #23094: Fixed readline with frames in Python implementation of pickle.Serhiy Storchaka2015-01-261-0/+8
| |
* | Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EXSerhiy Storchaka2014-12-161-11/+65
| | | | | | | | opcode if possible.
* | Fix uninitialized variable after #22676.Antoine Pitrou2014-12-011-0/+21
|/
* Issue #22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2Serhiy Storchaka2014-11-021-1/+1
| | | | and above. Patch by Tim Graham.
* Issue #19886: Use better estimated memory requirements for bigmem tests.Serhiy Storchaka2014-01-101-7/+5
|\ | | | | | | Incorrect requirements can cause memory swapping.
| * Issue #19886: Use better estimated memory requirements for bigmem tests.Serhiy Storchaka2014-01-101-7/+5
| | | | | | | | Incorrect requirements can cause memory swapping.
* | Issue #19648: implement empty tests in pickletester. Patch by Gennadiy Zlobin.Antoine Pitrou2013-12-281-2/+10
| |
* | Issue #6784: Strings from Python 2 can now be unpickled as bytes objects.Alexandre Vassalotti2013-12-071-1/+29
| | | | | | | | | | | | | | Initial patch by Merlijn van Deen. I've added a few unrelated docstring fixes in the patch while I was at it, which makes the documentation for pickle a bit more consistent.
* | Issue #19881: Fix bad pickling of large bytes in cpickle.Alexandre Vassalotti2013-12-061-21/+54
| |
* | Issue #19800: make the pickle framing tests more precise.Antoine Pitrou2013-12-031-0/+22
| |
* | Fix #19834: merge with 3.3.Walter Doerwald2013-12-021-0/+80
|\ \ | |/
| * Fix issue #19834: Support unpickling of exceptions pickled by Python 2.Walter Doerwald2013-12-021-0/+80
| |
* | Issue #19754: Make pickletools.optimize respect the frame size target.Alexandre Vassalotti2013-12-021-12/+1
| |
* | Issue #6477: Merge with 3.3.Alexandre Vassalotti2013-12-011-0/+9
|\ \ | |/
| * Issue #6477: Added support for pickling the types of built-in singletons.Alexandre Vassalotti2013-12-011-0/+9
| |
* | Merge with 3.3.Alexandre Vassalotti2013-11-301-18/+22
|\ \ | |/
| * Fixed _pickle.Unpickler to handle empty persistent IDs correctly.Alexandre Vassalotti2013-11-301-18/+22
| |
* | Selectively re-enable framing testsAntoine Pitrou2013-11-241-11/+19
| |
* | Disable annoying tests which doesn't work optimized pickles.Alexandre Vassalotti2013-11-241-11/+13
| |
* | Make framing optional in pickle protocol 4.Alexandre Vassalotti2013-11-241-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow us to control in the future whether to use framing or not. For example, we may want to turn it off for tiny pickle where it doesn't help. The change also improves performance slightly: ### fastpickle ### Min: 0.608517 -> 0.557358: 1.09x faster Avg: 0.798892 -> 0.694738: 1.15x faster Significant (t=3.45) Stddev: 0.17145 -> 0.12704: 1.3496x smaller Timeline: http://goo.gl/3xQE1J ### pickle_dict ### Min: 0.669920 -> 0.615271: 1.09x faster Avg: 0.733633 -> 0.645058: 1.14x faster Significant (t=5.05) Stddev: 0.12041 -> 0.02961: 4.0662x smaller Timeline: http://goo.gl/LpLSXI ### pickle_list ### Min: 0.397583 -> 0.368112: 1.08x faster Avg: 0.412784 -> 0.397223: 1.04x faster Significant (t=2.78) Stddev: 0.01518 -> 0.03653: 2.4068x larger Timeline: http://goo.gl/v39E59 ### unpickle_list ### Min: 0.692935 -> 0.594870: 1.16x faster Avg: 0.730012 -> 0.628395: 1.16x faster Significant (t=17.76) Stddev: 0.02720 -> 0.02995: 1.1012x larger Timeline: http://goo.gl/2P9AEt The following not significant results are hidden, use -v to show them: fastunpickle.
* | test_pickle: speed up test_longAntoine Pitrou2013-11-231-1/+5
| |
* | Issue #17810: Implement PEP 3154, pickle protocol 4.Antoine Pitrou2013-11-231-129/+358
| | | | | | | | Most of the work is by Alexandre.
* | Issue #18743: Fix references to non-existant "StringIO" moduleSerhiy Storchaka2013-08-291-2/+2
|\ \ | |/ | | | | in docstrings and comments.
| * Issue #18743: Fix references to non-existant "StringIO" moduleSerhiy Storchaka2013-08-291-2/+2
| | | | | | | | in docstrings and comments.
* | Merge 3.3Alexandre Vassalotti2013-04-201-4/+54
|\ \ | |/
| * Isuse #17720: Fix APPENDS handling in the Python implementation of UnpicklerAlexandre Vassalotti2013-04-201-4/+54
| | | | | | | | to correctly process the opcode when it is used on non-list objects.
* | Make C and Python implementations of pickle load STRING opcodes the same way.Alexandre Vassalotti2013-04-161-24/+29
|/ | | | | | | | | | | | | The C version tried to remove trailing whitespace between the last quote and the newline character. I am not sure why it had this because pickle never generated such pickles---for this to happen repr(some_string) would need to return trailing whitespace. It was maybe there to make it easier for people to write pickles in text editors. Anyhow, the Python version doesn't do this so there is no point keeping this around anymore. Also, I've changed the exception raised when a bad pickle is encountered. Again this unlikely to make much difference to anyone though it does make testing slightly nicer for us.
* Issue #17710: Fix pickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-0/+8
|
* #17346: merge with 3.2.Ezio Melotti2013-03-041-5/+5
|\
| * #17346: make sure pickle tests are run against all protocols. Initial patch ↵Ezio Melotti2013-03-041-5/+5
| | | | | | | | by Marius Gedminas.
* | Issue #15079: make a test applicable to both C and Python versions of the ↵Antoine Pitrou2012-06-261-3/+5
|\ \ | |/ | | | | | | | | pickle module. Patch by Stefan Mihaila.
| * Issue #15079: make a test applicable to both C and Python versions of the ↵Antoine Pitrou2012-06-261-3/+5
| | | | | | | | | | | | pickle module. Patch by Stefan Mihaila.
* | Fixes #13842: cannot pickle Ellipsis or NotImplemented.Łukasz Langa2012-03-121-0/+12
| | | | | | | | Thanks for James Sanders for the bug report and the patch.
* | Issue #14166: Pickler objects now have an optional `dispatch_table` ↵Antoine Pitrou2012-03-041-0/+99
| | | | | | | | | | | | attribute which allows to set custom per-pickler reduction functions. Patch by sbt.
* | Merge 3.2Alexandre Vassalotti2011-12-131-3/+9
|\ \ | |/
| * Issue #13505: Make pickling of bytes object compatible with Python 2.Alexandre Vassalotti2011-12-131-3/+9
| | | | | | | | Initial patch by sbt.
* | Also fix pickletesterAntoine Pitrou2011-10-041-3/+3
| |
* | Start fixing test_bigmem:Antoine Pitrou2011-10-041-6/+6
|\ \ | |/ | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
| * Start fixing test_bigmem:Antoine Pitrou2011-10-041-6/+6
| | | | | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption