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
698ff289
Commit
698ff289
authored
Aug 29, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for issue #148: EINVAL is randomly raised on Mac OS X. Thanks to Mark Hingston.
parent
433fa30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
greentest/test__subprocess.py
greentest/test__subprocess.py
+11
-0
No files found.
greentest/test__subprocess.py
View file @
698ff289
# mostly tests from test_subprocess.py that used to have problems
# mostly tests from test_subprocess.py that used to have problems
import
sys
import
sys
import
os
import
os
import
errno
import
greentest
import
greentest
from
gevent
import
subprocess
from
gevent
import
subprocess
...
@@ -117,6 +118,16 @@ class Test(greentest.TestCase):
...
@@ -117,6 +118,16 @@ class Test(greentest.TestCase):
if
p
.
poll
()
is
None
:
if
p
.
poll
()
is
None
:
p
.
send_signal
(
9
)
p
.
send_signal
(
9
)
def
test_issue148
(
self
):
for
i
in
range
(
7
):
try
:
p1
=
subprocess
.
Popen
(
'this_name_must_not_exist'
)
except
OSError
as
ex
:
if
ex
.
errno
!=
errno
.
ENOENT
:
raise
else
:
raise
AssertionError
(
'must fail with ENOENT'
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
greentest
.
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