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
a54cad97
Commit
a54cad97
authored
Apr 14, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_close_backend_fd not relevant for libuv.
parent
0e536ba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/gevent/libuv/loop.py
src/gevent/libuv/loop.py
+3
-1
src/greentest/test_close_backend_fd.py
src/greentest/test_close_backend_fd.py
+5
-2
No files found.
src/gevent/libuv/loop.py
View file @
a54cad97
...
...
@@ -235,7 +235,9 @@ class loop(AbstractLoop):
def
fileno
(
self
):
if
self
.
_ptr
:
return
libuv
.
uv_backend_fd
(
self
.
_ptr
)
fd
=
libuv
.
uv_backend_fd
(
self
.
_ptr
)
if
fd
>=
0
:
return
fd
_sigchld_watcher
=
None
_sigchld_callback_ffi
=
None
...
...
src/greentest/test_close_backend_fd.py
View file @
a54cad97
...
...
@@ -4,9 +4,12 @@ import gevent
from
gevent
import
core
if
core
.
LIBEV_EMBED
:
if
getattr
(
core
,
'LIBEV_EMBED'
,
False
)
:
# hub.loop.fileno is only defined when
# we embed libev for some reason
# we embed libev for some reason.
# Choosing specific backends is also only supported by libev
# (not libuv), and besides, libuv has a nasty tendency to
# abort() the process if its FD gets closed.
for
count
in
range
(
2
):
for
backend
in
core
.
supported_backends
():
...
...
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