mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #11286: Fixed unpickling of empty 2.x strings.
This commit is contained in:
parent
6c3787cb70
commit
1ce92dc20d
4 changed files with 12 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue