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
f35dca8d
Commit
f35dca8d
authored
Oct 16, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close leaking files, and python 3.5 does support socketpair on Win32
parent
1517b80f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
greentest/test__socketpair.py
greentest/test__socketpair.py
+6
-2
known_failures.py
known_failures.py
+9
-1
No files found.
greentest/test__socketpair.py
View file @
f35dca8d
...
...
@@ -10,8 +10,10 @@ class TestSocketpair(unittest.TestCase):
x
,
y
=
socket
.
socketpair
()
x
.
sendall
(
msg
)
x
.
close
()
read
=
y
.
makefile
(
'rb'
).
read
()
with
y
.
makefile
(
'rb'
)
as
f
:
read
=
f
.
read
()
self
.
assertEqual
(
msg
,
read
)
y
.
close
()
def
test_fromfd
(
self
):
msg
=
b'hello world'
...
...
@@ -23,8 +25,10 @@ class TestSocketpair(unittest.TestCase):
xx
.
sendall
(
msg
)
xx
.
close
()
read
=
yy
.
makefile
(
'rb'
).
read
()
with
yy
.
makefile
(
'rb'
)
as
f
:
read
=
f
.
read
()
self
.
assertEqual
(
msg
,
read
)
yy
.
close
()
if
__name__
==
'__main__'
:
...
...
known_failures.py
View file @
f35dca8d
...
...
@@ -12,6 +12,7 @@ COVERAGE = os.getenv("COVERAGE_PROCESS_START")
PYPY
=
hasattr
(
sys
,
'pypy_version_info'
)
PY3
=
sys
.
version_info
[
0
]
>=
3
PY26
=
sys
.
version_info
[
0
]
==
2
and
sys
.
version_info
[
1
]
==
6
PY35
=
sys
.
version_info
[
0
]
>=
3
and
sys
.
version_info
[
1
]
>=
5
PYGTE279
=
(
sys
.
version_info
[
0
]
==
2
and
sys
.
version_info
[
1
]
>=
7
...
...
@@ -58,7 +59,6 @@ if sys.platform == 'win32':
'test__core_fork.py'
,
'test__issues461_471.py'
,
'test__execmodules.py'
,
'test__socketpair.py'
,
'test__makefile_ref.py'
,
'FLAKY test__greenletset.py'
,
# The various timeout tests are flaky for unknown reasons
...
...
@@ -67,6 +67,14 @@ if sys.platform == 'win32':
'FLAKY test_hub_join_timeout.py'
,
]
if
not
PY35
:
# Py35 added socket.socketpair, all other releases
# are missing it
FAILING_TESTS
+=
[
'test__socketpair.py'
,
]
if
struct
.
calcsize
(
'P'
)
*
8
==
64
:
# could be a problem of appveyor - not sure
# ======================================================================
...
...
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