mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
Renamed "bin" arguments to "proto". Note that this test currently
fails, for reasons unrelated to this patch.
This commit is contained in:
parent
c23e0192c9
commit
dcaa24e503
1 changed files with 6 additions and 6 deletions
|
|
@ -15,9 +15,9 @@ class cPickleTests(AbstractPickleTests, AbstractPickleModuleTests):
|
||||||
|
|
||||||
class cPicklePicklerTests(AbstractPickleTests):
|
class cPicklePicklerTests(AbstractPickleTests):
|
||||||
|
|
||||||
def dumps(self, arg, bin=0):
|
def dumps(self, arg, proto=0):
|
||||||
f = StringIO()
|
f = StringIO()
|
||||||
p = cPickle.Pickler(f, bin)
|
p = cPickle.Pickler(f, proto)
|
||||||
p.dump(arg)
|
p.dump(arg)
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
@ -31,8 +31,8 @@ class cPicklePicklerTests(AbstractPickleTests):
|
||||||
|
|
||||||
class cPickleListPicklerTests(AbstractPickleTests):
|
class cPickleListPicklerTests(AbstractPickleTests):
|
||||||
|
|
||||||
def dumps(self, arg, bin=0):
|
def dumps(self, arg, proto=0):
|
||||||
p = cPickle.Pickler(bin)
|
p = cPickle.Pickler(proto)
|
||||||
p.dump(arg)
|
p.dump(arg)
|
||||||
return p.getvalue()
|
return p.getvalue()
|
||||||
|
|
||||||
|
|
@ -45,9 +45,9 @@ class cPickleListPicklerTests(AbstractPickleTests):
|
||||||
|
|
||||||
class cPickleFastPicklerTests(AbstractPickleTests):
|
class cPickleFastPicklerTests(AbstractPickleTests):
|
||||||
|
|
||||||
def dumps(self, arg, bin=0):
|
def dumps(self, arg, proto=0):
|
||||||
f = StringIO()
|
f = StringIO()
|
||||||
p = cPickle.Pickler(f, bin)
|
p = cPickle.Pickler(f, proto)
|
||||||
p.fast = 1
|
p.fast = 1
|
||||||
p.dump(arg)
|
p.dump(arg)
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue