Skip to content

Commit

Permalink
Per @tseaver, avoid aliasing BytesIO to StringIO for test clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 30, 2015
1 parent 5ca78ac commit ba35cf6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Acquisition/tests.py
Expand Up @@ -1639,8 +1639,8 @@ def test_cant_persist_acquisition_wrappers_classic():
Check custom pickler:
>>> from io import BytesIO as StringIO
>>> file = StringIO()
>>> from io import BytesIO
>>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w)
Expand All @@ -1651,7 +1651,7 @@ def test_cant_persist_acquisition_wrappers_classic():
Check custom pickler with a persistent_id method matching the semantics
in ZODB.serialize.ObjectWriter.persistent_id:
>>> file = StringIO()
>>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj):
Expand Down Expand Up @@ -1704,8 +1704,8 @@ def test_cant_persist_acquisition_wrappers_newstyle():
Check custom pickler:
>>> from io import BytesIO as StringIO
>>> file = StringIO()
>>> from io import BytesIO
>>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w)
Expand All @@ -1716,7 +1716,7 @@ def test_cant_persist_acquisition_wrappers_newstyle():
Check custom pickler with a persistent_id method matching the semantics
in ZODB.serialize.ObjectWriter.persistent_id:
>>> file = StringIO()
>>> file = BytesIO()
>>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj):
Expand Down

0 comments on commit ba35cf6

Please sign in to comment.