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
8affab52
Commit
8affab52
authored
Apr 04, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merging changes from master.
parent
04d87935
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
gevent/os.py
gevent/os.py
+1
-1
greentest/patched_tests_setup.py
greentest/patched_tests_setup.py
+52
-0
No files found.
gevent/os.py
View file @
8affab52
...
...
@@ -338,7 +338,7 @@ if hasattr(os, 'fork'):
if
pid
:
# parent
loop
=
loop
or
get_hub
().
loop
watcher
=
loop
.
child
(
pid
)
watcher
=
loop
.
child
(
pid
,
ref
=
ref
)
_watched_children
[
pid
]
=
watcher
watcher
.
start
(
_on_child
,
watcher
,
callback
)
return
pid
...
...
greentest/patched_tests_setup.py
View file @
8affab52
...
...
@@ -301,8 +301,60 @@ if sys.version_info[:2] >= (3, 4):
# libev limits the number of events it will return at once. Specifically,
# on linux with epoll, it returns a max of 64 (ev_epoll.c).
# XXX: Hangs (Linux only)
'test_socket.NonBlockingTCPTests.testInitNonBlocking'
,
# We don't handle the Linux-only SOCK_NONBLOCK option
'test_socket.NonblockConstantTest.test_SOCK_NONBLOCK'
,
# Tries to use multiprocessing which doesn't quite work in
# monkey_test module (Windows only)
'test_socket.TestSocketSharing.testShare'
,
# Windows-only: Sockets have a 'ioctl' method in Python 3
# implemented in the C code. This test tries to check
# for the presence of the method in the class, which we don't
# have because we don't inherit the C implementation. But
# it should be found at runtime.
'test_socket.GeneralModuleTests.test_sock_ioctl'
,
# Relies on implementation details
'test_socket.GeneralModuleTests.test_SocketType_is_socketobject'
,
'test_socket.GeneralModuleTests.test_dealloc_warn'
,
'test_socket.GeneralModuleTests.test_repr'
,
'test_socket.GeneralModuleTests.test_str_for_enums'
,
'test_socket.GeneralModuleTests.testGetaddrinfo'
,
]
if
sys
.
platform
==
'darwin'
:
disabled_tests
+=
[
# These raise "OSError: 12 Cannot allocate memory" on both
# patched and unpatched runs
'test_socket.RecvmsgSCMRightsStreamTest.testFDPassEmpty'
,
]
if
sys
.
version_info
[:
2
]
==
(
3
,
4
):
disabled_tests
+=
[
# These are all expecting that a signal (sigalarm) that
# arrives during a blocking call should raise
# InterruptedError with errno=EINTR. gevent does not do
# this, instead its loop keeps going and raises a timeout
# (which fails the test). HOWEVER: Python 3.5 fixed this
# problem and started raising a timeout,
# (https://docs.python.org/3/whatsnew/3.5.html#pep-475-retry-system-calls-failing-with-eintr)
# and removed these tests (InterruptedError is no longer
# raised). So basically, gevent was ahead of its time.
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvIntoTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvfromIntoTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvfromTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedSendtoTimeout'
,
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvmsgTimeout'
,
'test_socket.InterruptedSendTimeoutTest.testInterruptedSendmsgTimeout'
,
]
if
os
.
environ
.
get
(
'TRAVIS'
)
==
'true'
:
disabled_tests
+=
[
'test_subprocess.ProcessTestCase.test_double_close_on_error'
,
...
...
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