Commit ba35cf6f authored by Jason Madden's avatar Jason Madden

Per @tseaver, avoid aliasing BytesIO to StringIO for test clarity.

parent 5ca78ace
...@@ -1639,8 +1639,8 @@ def test_cant_persist_acquisition_wrappers_classic(): ...@@ -1639,8 +1639,8 @@ def test_cant_persist_acquisition_wrappers_classic():
Check custom pickler: Check custom pickler:
>>> from io import BytesIO as StringIO >>> from io import BytesIO
>>> file = StringIO() >>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1) >>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w) >>> pickler.dump(w)
...@@ -1651,7 +1651,7 @@ def test_cant_persist_acquisition_wrappers_classic(): ...@@ -1651,7 +1651,7 @@ def test_cant_persist_acquisition_wrappers_classic():
Check custom pickler with a persistent_id method matching the semantics Check custom pickler with a persistent_id method matching the semantics
in ZODB.serialize.ObjectWriter.persistent_id: in ZODB.serialize.ObjectWriter.persistent_id:
>>> file = StringIO() >>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1) >>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj): >>> def persistent_id(obj):
...@@ -1704,8 +1704,8 @@ def test_cant_persist_acquisition_wrappers_newstyle(): ...@@ -1704,8 +1704,8 @@ def test_cant_persist_acquisition_wrappers_newstyle():
Check custom pickler: Check custom pickler:
>>> from io import BytesIO as StringIO >>> from io import BytesIO
>>> file = StringIO() >>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1) >>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w) >>> pickler.dump(w)
...@@ -1716,7 +1716,7 @@ def test_cant_persist_acquisition_wrappers_newstyle(): ...@@ -1716,7 +1716,7 @@ def test_cant_persist_acquisition_wrappers_newstyle():
Check custom pickler with a persistent_id method matching the semantics Check custom pickler with a persistent_id method matching the semantics
in ZODB.serialize.ObjectWriter.persistent_id: in ZODB.serialize.ObjectWriter.persistent_id:
>>> file = StringIO() >>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1) >>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj): >>> def persistent_id(obj):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment