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
810040cc
Commit
810040cc
authored
Jan 21, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid assertion errors because of slow machine
parent
90edcf6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
greentest/greentest.py
greentest/greentest.py
+4
-4
No files found.
greentest/greentest.py
View file @
810040cc
...
@@ -127,7 +127,7 @@ class GenericWaitTestCase(TestCase):
...
@@ -127,7 +127,7 @@ class GenericWaitTestCase(TestCase):
result
=
self
.
wait
(
timeout
=
0.01
)
result
=
self
.
wait
(
timeout
=
0.01
)
# join and wait simply returns after timeout expires
# join and wait simply returns after timeout expires
delay
=
time
.
time
()
-
start
delay
=
time
.
time
()
-
start
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
,
delay
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
+
0.1
,
delay
assert
result
is
None
,
repr
(
result
)
assert
result
is
None
,
repr
(
result
)
...
@@ -143,7 +143,7 @@ class GenericGetTestCase(TestCase):
...
@@ -143,7 +143,7 @@ class GenericGetTestCase(TestCase):
self
.
assertRaises
(
gevent
.
Timeout
,
self
.
wait
,
timeout
=
0.01
)
self
.
assertRaises
(
gevent
.
Timeout
,
self
.
wait
,
timeout
=
0.01
)
# get raises Timeout after timeout expired
# get raises Timeout after timeout expired
delay
=
time
.
time
()
-
start
delay
=
time
.
time
()
-
start
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
,
delay
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
+
0.1
,
delay
def
test_raises_timeout_Timeout
(
self
):
def
test_raises_timeout_Timeout
(
self
):
start
=
time
.
time
()
start
=
time
.
time
()
...
@@ -153,7 +153,7 @@ class GenericGetTestCase(TestCase):
...
@@ -153,7 +153,7 @@ class GenericGetTestCase(TestCase):
except
gevent
.
Timeout
,
ex
:
except
gevent
.
Timeout
,
ex
:
assert
ex
is
timeout
,
(
ex
,
timeout
)
assert
ex
is
timeout
,
(
ex
,
timeout
)
delay
=
time
.
time
()
-
start
delay
=
time
.
time
()
-
start
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
,
delay
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
+
0.1
,
delay
def
test_raises_timeout_Timeout_exc_customized
(
self
):
def
test_raises_timeout_Timeout_exc_customized
(
self
):
start
=
time
.
time
()
start
=
time
.
time
()
...
@@ -164,5 +164,5 @@ class GenericGetTestCase(TestCase):
...
@@ -164,5 +164,5 @@ class GenericGetTestCase(TestCase):
except
RuntimeError
,
ex
:
except
RuntimeError
,
ex
:
assert
ex
is
error
,
(
ex
,
error
)
assert
ex
is
error
,
(
ex
,
error
)
delay
=
time
.
time
()
-
start
delay
=
time
.
time
()
-
start
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
,
delay
assert
0.01
-
0.001
<=
delay
<
0.01
+
0.01
+
0.1
,
delay
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