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
d3cc8925
Commit
d3cc8925
authored
Feb 15, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments on some Windows test issues that are better understood. [skip ci]
parent
9cfdda0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
src/greentest/known_failures.py
src/greentest/known_failures.py
+8
-5
src/greentest/test__core_fork.py
src/greentest/test__core_fork.py
+7
-1
No files found.
src/greentest/known_failures.py
View file @
d3cc8925
...
...
@@ -34,11 +34,14 @@ FAILING_TESTS = [
if
sys
.
platform
==
'win32'
:
IGNORED_TESTS
=
[
# fork watchers don't get called on windows
# because fork is not a concept windows has.
# See this file for a detailed explanation.
'test__core_fork.py'
,
]
# other Windows-related issues (need investigating)
FAILING_TESTS
+=
[
# fork watchers don't get called in multithreaded programs on windows
# No idea why.
'test__core_fork.py'
,
'FLAKY test__greenletset.py'
,
# This has been seen to fail on Py3 and Py2 due to socket reuse
# errors, probably timing related again.
...
...
@@ -95,8 +98,8 @@ if sys.platform == 'win32':
if
not
PY35
:
# Py35 added socket.socketpair, all other releases
# are missing it
FAILING
_TESTS
+=
[
# are missing it
. No reason to even test it.
IGNORED
_TESTS
+=
[
'test__socketpair.py'
,
]
...
...
src/greentest/test__core_fork.py
View file @
d3cc8925
...
...
@@ -2,7 +2,7 @@ from __future__ import print_function
import
gevent.monkey
;
gevent
.
monkey
.
patch_all
()
import
gevent
import
os
import
sys
import
multiprocessing
hub
=
gevent
.
get_hub
()
...
...
@@ -48,4 +48,10 @@ if __name__ == '__main__':
# fork watchers weren't firing in multi-threading processes.
# This test is designed to prove that they are.
# However, it fails on Windows: The fork watcher never runs!
# This makes perfect sense: on Windows, our patches to os.fork()
# that call gevent.hub.reinit() don't get used; os.fork doesn't
# exist and multiprocessing.Process uses the windows-specific _subprocess.CreateProcess()
# to create a whole new process that has no relation to the current process;
# that process then calls multiprocessing.forking.main() to do its work.
# Since no state is shared, a fork watcher cannot exist in that process.
test
()
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