Issue #11286: Fixed unpickling of empty 2.x strings.

This commit is contained in:
Alexander Belopolsky 2011-02-24 19:40:09 +00:00
parent 6c3787cb70
commit 1ce92dc20d
4 changed files with 12 additions and 13 deletions

View file

@ -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