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
1d6a5020
Commit
1d6a5020
authored
Jan 14, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Need to skip on appveyor.
parent
acc67c32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
src/gevent/testing/patched_tests_setup.py
src/gevent/testing/patched_tests_setup.py
+9
-0
src/gevent/tests/test__subprocess.py
src/gevent/tests/test__subprocess.py
+13
-1
No files found.
src/gevent/testing/patched_tests_setup.py
View file @
1d6a5020
...
...
@@ -674,6 +674,11 @@ if WIN:
disabled_tests
+=
[
# Issue with Unix vs DOS newlines in the file vs from the server
'test_ssl.ThreadedTests.test_socketserver'
,
# On appveyor, this sometimes produces 'A non-blocking socket
# operation could not be completed immediately', followed by
# 'No connection could be made because the target machine
# actively refused it'
'test_socket.NonBlockingTCPTests.testAccept'
,
]
# These are a problem on 3.5; on 3.6+ they wind up getting (accidentally) disabled.
...
...
@@ -803,6 +808,10 @@ if PY3:
'test_subprocess.ProcessTestCaseNoPoll.test_cwd_with_relative_arg'
,
'test_subprocess.ProcessTestCase.test_cwd_with_relative_executable'
,
# In 3.7 and 3.8 on Travis CI, this appears to take the full 3 seconds.
# Can't reproduce it locally. We have our own copy of this that takes
# timing on CI into account.
'test_subprocess.RunFuncTestCase.test_run_with_shell_timeout_and_capture_output'
,
]
disabled_tests
+=
[
...
...
src/gevent/tests/test__subprocess.py
View file @
1d6a5020
...
...
@@ -110,6 +110,7 @@ class TestPopen(greentest.TestCase):
self
.
assertEqual
(
stderr
,
'pineapple
\
n
\
xff
\
xff
\
xf2
\
xf9
\
n
'
)
@
greentest
.
skipOnWindows
(
"Windows IO is weird; this doesn't raise"
)
@
greentest
.
skipOnPy2
(
"Only Python 2 decodes"
)
def
test_communicate_undecodable
(
self
):
# If the subprocess writes non-decodable data, `communicate` raises the
...
...
@@ -397,7 +398,7 @@ class TestFDs(unittest.TestCase):
from_path
.
assert_called_once_with
(
'/proc/self/fd'
,
[
7
],
42
)
class
RunFuncTestCase
(
greentest
.
TestCase
):
# Based on code from python 3.6
# Based on code from python 3.6
+
__timeout__
=
greentest
.
LARGE_TIMEOUT
...
...
@@ -501,6 +502,17 @@ class RunFuncTestCase(greentest.TestCase):
env
=
newenv
)
self
.
assertEqual
(
cp
.
returncode
,
33
)
# This test _might_ wind up a bit fragile on loaded build+test machines
# as it depends on the timing with wide enough margins for normal situations
# but does assert that it happened "soon enough" to believe the right thing
# happened.
@
greentest
.
skipOnWindows
(
"requires posix like 'sleep' shell command"
)
def
test_run_with_shell_timeout_and_capture_output
(
self
):
#Output capturing after a timeout mustn't hang forever on open filehandles
with
self
.
runs_in_given_time
(
0.1
):
with
self
.
assertRaises
(
subprocess
.
TimeoutExpired
)
as
c
:
subprocess
.
run
(
'sleep 3'
,
shell
=
True
,
timeout
=
0.1
,
capture_output
=
True
)
# New session unspecified.
if
__name__
==
'__main__'
:
greentest
.
main
()
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