Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Acquisition
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Acquisition
Commits
ba35cf6f
Commit
ba35cf6f
authored
Mar 30, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Per @tseaver, avoid aliasing BytesIO to StringIO for test clarity.
parent
5ca78ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/Acquisition/tests.py
src/Acquisition/tests.py
+6
-6
No files found.
src/Acquisition/tests.py
View file @
ba35cf6f
...
...
@@ -1639,8 +1639,8 @@ def test_cant_persist_acquisition_wrappers_classic():
Check custom pickler:
>>> from io import BytesIO
as StringIO
>>> file =
String
IO()
>>> from io import BytesIO
>>> file =
Bytes
IO()
>>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w)
...
...
@@ -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 =
String
IO()
>>> file =
Bytes
IO()
>>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj):
...
...
@@ -1704,8 +1704,8 @@ def test_cant_persist_acquisition_wrappers_newstyle():
Check custom pickler:
>>> from io import BytesIO
as StringIO
>>> file =
String
IO()
>>> from io import BytesIO
>>> file =
Bytes
IO()
>>> pickler = cPickle.Pickler(file, 1)
>>> pickler.dump(w)
...
...
@@ -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 =
String
IO()
>>> file =
Bytes
IO()
>>> pickler = cPickle.Pickler(file, 1)
>>> def persistent_id(obj):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment