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
45e4c474
Commit
45e4c474
authored
Apr 26, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More timer test tweaks.
parent
c4d3be2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/greentest/test__core_timer.py
src/greentest/test__core_timer.py
+7
-4
No files found.
src/greentest/test__core_timer.py
View file @
45e4c474
from
__future__
import
print_function
from
gevent
import
config
import
greentest
from
greentest
import
TestCase
from
greentest
import
main
from
greentest
import
LARGE_TIMEOUT
from
greentest.sysinfo
import
CFFI_BACKEND
...
...
@@ -113,7 +113,7 @@ class TestTimerResolution(Test):
loop
=
self
.
loop
for
_
in
range
(
15
):
for
_
in
range
(
15
0
):
# in libuv, our signal timer fires every 300ms; depending on
# when this runs, we could artificially get a better
# resolution than we expect. Run it multiple times to be more sure.
...
...
@@ -141,8 +141,11 @@ class TestTimerResolution(Test):
self
.
timer_duration
*
5
)
self
.
assertTrue
(
ran_at_least_once
)
if
not
greentest
.
RUNNING_ON_CI
:
# Hmm, this always fires locally on mocOS but
# not an Travis?
self
.
assertTrue
(
ran_at_least_once
)
if
__name__
==
'__main__'
:
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