Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
gevent
Commits
bc86d4ea
Commit
bc86d4ea
authored
May 18, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test__ares_host_result under Python3.4, where there is a newer pickle protocol.
parent
2e4508b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
greentest/test__ares_host_result.py
greentest/test__ares_host_result.py
+4
-14
No files found.
greentest/test__ares_host_result.py
View file @
bc86d4ea
...
...
@@ -21,20 +21,10 @@ class TestPickle(greentest.TestCase):
assert
r
==
loaded
,
(
r
,
loaded
)
assert
r
.
family
==
loaded
.
family
,
(
r
,
loaded
)
def
test0
(
self
):
return
self
.
_test
(
0
)
def
test1
(
self
):
return
self
.
_test
(
1
)
def
test2
(
self
):
return
self
.
_test
(
2
)
if
pickle
.
HIGHEST_PROTOCOL
==
3
:
def
test3
(
self
):
return
self
.
_test
(
3
)
else
:
assert
pickle
.
HIGHEST_PROTOCOL
==
2
,
pickle
.
HIGHEST_PROTOCOL
for
i
in
range
(
0
,
pickle
.
HIGHEST_PROTOCOL
):
def
make_test
(
j
):
return
lambda
self
:
self
.
_test
(
j
)
setattr
(
TestPickle
,
'test'
+
str
(
i
),
make_test
(
i
)
)
if
__name__
==
'__main__'
:
...
...
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