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
38739ca5
Commit
38739ca5
authored
Dec 28, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test_close_backend_fd.py
parent
32ef72d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
greentest/test_close_backend_fd.py
greentest/test_close_backend_fd.py
+25
-0
No files found.
greentest/test_close_backend_fd.py
0 → 100644
View file @
38739ca5
import
os
import
traceback
import
gevent
for
_
in
xrange
(
2
):
for
backend
in
gevent
.
core
.
supported_backends
():
print
'Testing backend: %r'
%
backend
hub
=
gevent
.
get_hub
(
backend
)
print
hub
assert
hub
.
loop
.
backend
==
backend
,
(
hub
.
loop
.
backend
,
backend
)
gevent
.
sleep
(
0.001
)
fd
=
getattr
(
hub
.
loop
,
'backend_fd'
,
None
)
if
fd
is
not
None
and
fd
>=
0
:
os
.
close
(
hub
.
loop
.
backend_fd
)
try
:
gevent
.
sleep
(
0.001
)
except
SystemError
,
ex
:
if
'(libev)'
not
in
str
(
ex
):
raise
traceback
.
print_exc
()
else
:
print
'Skipping %r'
%
backend
hub
.
destroy
()
print
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