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
6dc5ad10
Commit
6dc5ad10
authored
Sep 27, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lower timeouts in stdlib tests
parent
6f27a8b2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
greentest/2.5/test_select.py
greentest/2.5/test_select.py
+2
-2
greentest/2.5/test_urllib2_localnet.py
greentest/2.5/test_urllib2_localnet.py
+2
-2
greentest/2.6/test_select.py
greentest/2.6/test_select.py
+2
-2
greentest/2.6/test_urllib2_localnet.py
greentest/2.6/test_urllib2_localnet.py
+2
-2
greentest/2.7/test_select.py
greentest/2.7/test_select.py
+2
-2
greentest/2.7/test_urllib2_localnet.py
greentest/2.7/test_urllib2_localnet.py
+2
-2
No files found.
greentest/2.5/test_select.py
View file @
6dc5ad10
...
...
@@ -46,9 +46,9 @@ def test():
if
verbose
:
print
"Can't test select easily on"
,
sys
.
platform
return
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep
0.
1; done'
p
=
os
.
popen
(
cmd
,
'r'
)
for
tout
in
(
0
,
1
,
2
,
4
,
8
,
1
6
)
+
(
None
,)
*
10
:
for
tout
in
(
0
,
0.1
,
0.2
,
0.4
,
0.8
,
1.
6
)
+
(
None
,)
*
10
:
if
verbose
:
print
'timeout ='
,
tout
rfd
,
wfd
,
xfd
=
select
.
select
([
p
],
[],
[],
tout
)
...
...
greentest/2.5/test_urllib2_localnet.py
View file @
6dc5ad10
...
...
@@ -23,7 +23,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# Set the timeout of our listening socket really low so
# that we can stop the server easily.
self
.
socket
.
settimeout
(
1.0
)
self
.
socket
.
settimeout
(
0.1
)
def
get_request
(
self
):
"""BaseHTTPServer method, overridden."""
...
...
@@ -33,7 +33,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# It's a loopback connection, so setting the timeout
# really low shouldn't affect anything, but should make
# deadlocks less likely to occur.
request
.
settimeout
(
1
0
.0
)
request
.
settimeout
(
1.0
)
return
(
request
,
client_address
)
...
...
greentest/2.6/test_select.py
View file @
6dc5ad10
...
...
@@ -35,9 +35,9 @@ class SelectTestCase(unittest.TestCase):
if
test_support
.
verbose
:
print
"can't easily test on this system"
return
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep
0.
1; done'
p
=
os
.
popen
(
cmd
,
'r'
)
for
tout
in
(
0
,
1
,
2
,
4
,
8
,
1
6
)
+
(
None
,)
*
10
:
for
tout
in
(
0
,
0.1
,
0.2
,
0.4
,
0.8
,
1.
6
)
+
(
None
,)
*
10
:
if
test_support
.
verbose
:
print
'timeout ='
,
tout
rfd
,
wfd
,
xfd
=
select
.
select
([
p
],
[],
[],
tout
)
...
...
greentest/2.6/test_urllib2_localnet.py
View file @
6dc5ad10
...
...
@@ -23,7 +23,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# Set the timeout of our listening socket really low so
# that we can stop the server easily.
self
.
socket
.
settimeout
(
1.0
)
self
.
socket
.
settimeout
(
0.1
)
def
get_request
(
self
):
"""BaseHTTPServer method, overridden."""
...
...
@@ -33,7 +33,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# It's a loopback connection, so setting the timeout
# really low shouldn't affect anything, but should make
# deadlocks less likely to occur.
request
.
settimeout
(
1
0
.0
)
request
.
settimeout
(
1.0
)
return
(
request
,
client_address
)
...
...
greentest/2.7/test_select.py
View file @
6dc5ad10
...
...
@@ -29,9 +29,9 @@ class SelectTestCase(unittest.TestCase):
self
.
assertIsNot
(
w
,
x
)
def
test_select
(
self
):
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
cmd
=
'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep
0.
1; done'
p
=
os
.
popen
(
cmd
,
'r'
)
for
tout
in
(
0
,
1
,
2
,
4
,
8
,
1
6
)
+
(
None
,)
*
10
:
for
tout
in
(
0
,
0.1
,
0.2
,
0.4
,
0.8
,
1.
6
)
+
(
None
,)
*
10
:
if
test_support
.
verbose
:
print
'timeout ='
,
tout
rfd
,
wfd
,
xfd
=
select
.
select
([
p
],
[],
[],
tout
)
...
...
greentest/2.7/test_urllib2_localnet.py
View file @
6dc5ad10
...
...
@@ -23,7 +23,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# Set the timeout of our listening socket really low so
# that we can stop the server easily.
self
.
socket
.
settimeout
(
1.0
)
self
.
socket
.
settimeout
(
0.1
)
def
get_request
(
self
):
"""BaseHTTPServer method, overridden."""
...
...
@@ -33,7 +33,7 @@ class LoopbackHttpServer(BaseHTTPServer.HTTPServer):
# It's a loopback connection, so setting the timeout
# really low shouldn't affect anything, but should make
# deadlocks less likely to occur.
request
.
settimeout
(
1
0
.0
)
request
.
settimeout
(
1.0
)
return
(
request
,
client_address
)
...
...
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