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
6b139a64
Commit
6b139a64
authored
Jun 17, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__examples.py: use mysubprocess
parent
4c58cc6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
greentest/test__examples.py
greentest/test__examples.py
+3
-10
No files found.
greentest/test__examples.py
View file @
6b139a64
...
...
@@ -3,13 +3,13 @@ import os
import
glob
from
os.path
import
join
,
abspath
,
dirname
,
normpath
,
basename
import
unittest
import
subprocess
import
urllib2
import
time
import
signal
import
re
import
gevent
from
gevent
import
socket
import
mysubprocess
as
subprocess
# Ignore tracebacks: KeyboardInterrupt
...
...
@@ -61,15 +61,8 @@ class BaseTestServer(unittest.TestCase):
def
tearDown
(
self
):
self
.
assertEqual
(
self
.
process
.
poll
(),
None
)
try
:
SIGINT
=
getattr
(
signal
,
'SIGINT'
,
None
)
if
SIGINT
is
not
None
:
os
.
kill
(
self
.
process
.
pid
,
SIGINT
)
time
.
sleep
(
0.1
)
self
.
assertEqual
(
self
.
process
.
poll
(),
1
)
finally
:
if
self
.
process
.
poll
()
is
None
:
self
.
process
.
kill
()
self
.
process
.
interrupt
()
time
.
sleep
(
0.5
)
class
Test_httpserver
(
BaseTestServer
):
...
...
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