summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pickletools.py
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-02-24 19:40:09 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-02-24 19:40:09 (GMT)
commit1ce92dc20d698ce46c3459da7801c76bb8518550 (patch)
tree26455f0ab85013e2095744fa179ae197500bd1aa /Lib/test/test_pickletools.py
parent6c3787cb70d8efa5f70939a5db300f56a724d698 (diff)
downloadcpython-1ce92dc20d698ce46c3459da7801c76bb8518550.zip
cpython-1ce92dc20d698ce46c3459da7801c76bb8518550.tar.gz
cpython-1ce92dc20d698ce46c3459da7801c76bb8518550.tar.bz2
Issue #11286: Fixed unpickling of empty 2.x strings.
Diffstat (limited to 'Lib/test/test_pickletools.py')
-rw-r--r--Lib/test/test_pickletools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pickletools.py b/Lib/test/test_pickletools.py
index 823b0c2..d37ac26 100644
--- a/Lib/test/test_pickletools.py
+++ b/Lib/test/test_pickletools.py
@@ -9,8 +9,8 @@ class OptimizedPickleTests(AbstractPickleTests, AbstractPickleModuleTests):
def dumps(self, arg, proto=None):
return pickletools.optimize(pickle.dumps(arg, proto))
- def loads(self, buf):
- return pickle.loads(buf)
+ def loads(self, buf, **kwds):
+ return pickle.loads(buf, **kwds)
# Test relies on precise output of dumps()
test_pickle_to_2x = None