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
417c73a9
Commit
417c73a9
authored
Jun 18, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test__socketpair
parent
90ab5cd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
gevent/_socket3.py
gevent/_socket3.py
+1
-0
greentest/test__socketpair.py
greentest/test__socketpair.py
+4
-4
known_failures.py
known_failures.py
+0
-1
No files found.
gevent/_socket3.py
View file @
417c73a9
...
...
@@ -5,6 +5,7 @@ import time
from
gevent
import
_socketcommon
import
_socket
from
io
import
BlockingIOError
from
os
import
dup
for
key
in
_socketcommon
.
__dict__
:
if
key
.
startswith
(
'__'
):
...
...
greentest/test__socketpair.py
View file @
417c73a9
...
...
@@ -6,15 +6,15 @@ import unittest
class
Test
(
unittest
.
TestCase
):
def
test
(
self
):
msg
=
'hello world'
msg
=
b
'hello world'
x
,
y
=
socket
.
socketpair
()
x
.
sendall
(
msg
)
x
.
close
()
read
=
y
.
makefile
().
read
()
read
=
y
.
makefile
(
'rb'
).
read
()
self
.
assertEqual
(
msg
,
read
)
def
test_fromfd
(
self
):
msg
=
'hello world'
msg
=
b
'hello world'
x
,
y
=
socket
.
socketpair
()
xx
=
socket
.
fromfd
(
x
.
fileno
(),
x
.
family
,
socket
.
SOCK_STREAM
)
x
.
close
()
...
...
@@ -23,7 +23,7 @@ class Test(unittest.TestCase):
xx
.
sendall
(
msg
)
xx
.
close
()
read
=
yy
.
makefile
().
read
()
read
=
yy
.
makefile
(
'rb'
).
read
()
self
.
assertEqual
(
msg
,
read
)
...
...
known_failures.py
View file @
417c73a9
...
...
@@ -94,7 +94,6 @@ test__pywsgi.py
test__socket_ex.py
test__example_echoserver.py
test__makefile_ref.py
test__socketpair.py
test__server_pywsgi.py
test__core_stat.py
test__example_portforwarder.py
...
...
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