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
0a45f740
Commit
0a45f740
authored
Sep 06, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix false detection in test__all__.
parent
5c5d2bc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
.travis.yml
.travis.yml
+5
-2
src/gevent/subprocess.py
src/gevent/subprocess.py
+27
-18
No files found.
.travis.yml
View file @
0a45f740
...
...
@@ -198,9 +198,12 @@ jobs:
# We only need to do this on one version, and it should be Python 3, because
# pylint has stopped updating for Python 2.
-
stage
:
test
# We need pylint, since above we're not installing a requirements file
# We need pylint, since above we're not installing a
# requirements file. Code added to _ssl3.SSLContext for Python
# 3.8 triggers an infinite recursion bug in pylint 2.3.1/astroid 2.2.5
# unless we disable inference.
install
:
pip install pylint
script
:
python -m pylint --rcfile=.pylintrc gevent
script
:
python -m pylint --
limit-inference-results=1 --
rcfile=.pylintrc gevent
env
:
TRAVIS_PYTHON_VERSION=3.7
name
:
lint37
...
...
src/gevent/subprocess.py
View file @
0a45f740
...
...
@@ -70,24 +70,6 @@ if PY3 and not sys.platform.startswith('win32'):
__implements__
.
append
(
"_posixsubprocess"
)
_posixsubprocess
=
None
if
PY38
:
# Using os.posix_spawn() to start subprocesses
# bypasses our child watchers on certain operating systems,
# and with certain library versions. Possibly the right
# fix is to monkey-patch os.posix_spawn like we do os.fork?
# These have no effect, they're just here to match the stdlib.
# TODO: When available, given a monkey patch on them, I think
# we ought to be able to use them if the stdlib has identified them
# as suitable.
__implements__
.
extend
([
'_use_posix_spawn'
,
'_USE_POSIX_SPAWN'
])
def
_use_posix_spawn
():
return
False
_USE_POSIX_SPAWN
=
False
# Some symbols we define that we expect to export;
# useful for static analysis
...
...
@@ -183,6 +165,33 @@ if PY37:
'CREATE_BREAKAWAY_FROM_JOB'
])
if
PY38
:
# Using os.posix_spawn() to start subprocesses
# bypasses our child watchers on certain operating systems,
# and with certain library versions. Possibly the right
# fix is to monkey-patch os.posix_spawn like we do os.fork?
# These have no effect, they're just here to match the stdlib.
# TODO: When available, given a monkey patch on them, I think
# we ought to be able to use them if the stdlib has identified them
# as suitable.
__implements__
.
extend
([
'_use_posix_spawn'
,
])
def
_use_posix_spawn
():
return
False
_USE_POSIX_SPAWN
=
False
if
__subprocess__
.
_USE_POSIX_SPAWN
:
__implements__
.
extend
([
'_USE_POSIX_SPAWN'
,
])
else
:
__imports__
.
extend
([
'_USE_POSIX_SPAWN'
,
])
actually_imported
=
copy_globals
(
__subprocess__
,
globals
(),
only_names
=
__imports__
,
ignore_missing_names
=
True
)
...
...
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