summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | 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.
| * 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.
* | Try to fix one of the bigmem tests in test_pickleAntoine Pitrou2011-08-301-0/+5
|\ \ | |/
| * Try to fix one of the bigmem tests in test_pickleAntoine Pitrou2011-08-301-0/+5
| |
* | Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-0/+12
|\ \ | |/ | | | | the C pickle implementation.
| * Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-0/+12
| | | | | | | | the C pickle implementation.
* | Issue #11564: Avoid crashes when trying to pickle huge objects or containersAntoine Pitrou2011-08-291-1/+100
|\ \ | |/ | | | | (more than 2**31 items). Instead, in most cases, an OverflowError is raised.
| * Issue #11564: Avoid crashes when trying to pickle huge objects or containersAntoine Pitrou2011-08-291-1/+101
| | | | | | | | (more than 2**31 items). Instead, in most cases, an OverflowError is raised.
* | Monotonic, not monotonousAntoine Pitrou2011-08-131-1/+1
| |
* | Issue #12744: Fix inefficient representation of integersAntoine Pitrou2011-08-131-0/+10
| | | | | | | | between 2**31 and 2**63 on systems with a 64-bit C "long".
* | Issue #12687: Fix a possible buffering bug when unpickling text mode ↵Antoine Pitrou2011-08-111-0/+13
|\ \ | |/ | | | | (protocol 0, mostly) pickles.
| * Issue #12687: Fix a possible buffering bug when unpickling text mode ↵Antoine Pitrou2011-08-111-0/+13
| | | | | | | | (protocol 0, mostly) pickles.
| * Merged revisions 88546 via svnmerge fromAlexander Belopolsky2011-02-241-0/+4
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88546 | alexander.belopolsky | 2011-02-24 14:40:09 -0500 (Thu, 24 Feb 2011) | 3 lines Issue #11286: Fixed unpickling of empty 2.x strings. ........
* | Issue #9935: Speed up pickling of instances of user-defined classes.Antoine Pitrou2011-03-111-1/+20
| |
* | Issue #11286: Fixed unpickling of empty 2.x strings.Alexander Belopolsky2011-02-241-0/+4
| |
* | Issue #10990: Prevent tests from clobbering a set trace function.Brett Cannon2011-02-211-1/+2
|/ | | | | | | | | | | Many tests simply didn't care if they unset a pre-existing trace function. This made test coverage impossible. This patch fixes various tests to put back any pre-existing trace function. It also introduces test.support.no_tracing as a decorator which will temporarily unset the trace function for tests which simply fail otherwise. Thanks to Kristian Vlaardingerbroek for helping to find the cause of various trace function unsets.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-1/+1
|
* Revert r85797 (and r85798): it broke the Windows buildbots because ofAntoine Pitrou2010-10-221-20/+1
| | | | test_multiprocessing's misbehaviour.
* Issue #9935: Speed up pickling of instances of user-defined classes.Antoine Pitrou2010-10-221-1/+20
|
* Issue #3873: Speed up unpickling from file objects which have a peek()Antoine Pitrou2010-10-121-1/+42
| | | | method.
* Issue #9410: Various optimizations to the pickle module, leading toAntoine Pitrou2010-09-091-0/+9
| | | | | speedups up to 4x (depending on the benchmark). Mostly ported from Unladen Swallow; initial patch by Alexandre Vassalotti.
* Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.xAlexander Belopolsky2010-07-171-0/+69
| | | | python when they contain instances of old-style classes.
* Issue #8383: pickle and pickletools use surrogatepass error handler whenVictor Stinner2010-04-131-1/+3
| | | | | encoding unicode as utf8 to support lone surrogates and stay compatible with Python 2.x and 3.0
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* use assert[Not]In where appropriateEzio Melotti2010-01-231-4/+4
|
* Merged revisions 77352-77354 via svnmerge fromAntoine Pitrou2010-01-071-0/+3
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77352 | antoine.pitrou | 2010-01-07 18:46:49 +0100 (jeu., 07 janv. 2010) | 5 lines Issue #7455: Fix possible crash in cPickle on invalid input. Patch by Florent Xicluna. ........ r77353 | antoine.pitrou | 2010-01-07 18:49:37 +0100 (jeu., 07 janv. 2010) | 3 lines Fix attribution. Florent actually repackaged and reviewed Victor's patch (sorry!). ........ r77354 | antoine.pitrou | 2010-01-07 18:54:10 +0100 (jeu., 07 janv. 2010) | 3 lines Fix reattribution mistake when fixing attribution mistake! ........
* Issue #7435: Remove duplicate int/long tests, and otherMark Dickinson2009-12-051-4/+1
| | | | references to long in py3k. Patch provided by flox.