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
83bc3dd9
Commit
83bc3dd9
authored
6 years ago
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak timing.
parent
c456b6ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/gevent/testing/testcase.py
src/gevent/testing/testcase.py
+3
-1
src/gevent/tests/test__hub_join_timeout.py
src/gevent/tests/test__hub_join_timeout.py
+2
-1
No files found.
src/gevent/testing/testcase.py
View file @
83bc3dd9
...
...
@@ -64,7 +64,9 @@ class TimeAssertMixin(object):
start
=
time
()
yield
elapsed
=
time
()
-
start
self
.
assertTimeWithinRange
(
elapsed
,
expected
-
fuzzy
,
expected
+
fuzzy
)
self
.
assertTrue
(
expected
-
fuzzy
<=
elapsed
<=
expected
+
fuzzy
,
'Expected: %r; elapsed: %r; fuzzy %r'
%
(
expected
,
elapsed
,
fuzzy
))
def
runs_in_no_time
(
self
,
...
...
This diff is collapsed.
Click to expand it.
src/gevent/tests/test__hub_join_timeout.py
View file @
83bc3dd9
...
...
@@ -6,7 +6,8 @@ import gevent.core
from
gevent.event
import
Event
from
gevent.testing.testcase
import
TimeAssertMixin
from
gevent.testing.timing
import
SMALL_TICK
SMALL_TICK
=
0.05
# setting up signal does not affect join()
gevent
.
signal
(
1
,
lambda
:
None
)
# wouldn't work on windows
...
...
This diff is collapsed.
Click to expand it.
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