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
c4d3be2a
Commit
c4d3be2a
authored
Apr 26, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for test__core_timer on Linux.
parent
44566460
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
src/gevent/libuv/loop.py
src/gevent/libuv/loop.py
+1
-1
src/greentest/greentest/testrunner.py
src/greentest/greentest/testrunner.py
+11
-1
src/greentest/test__core_timer.py
src/greentest/test__core_timer.py
+2
-2
No files found.
src/gevent/libuv/loop.py
View file @
c4d3be2a
...
...
@@ -443,7 +443,7 @@ class loop(AbstractLoop):
mode
=
libuv
.
UV_RUN_NOWAIT
if
mode
==
libuv
.
UV_RUN_DEFAULT
:
while
self
.
_ptr
:
while
self
.
_ptr
and
self
.
_ptr
.
data
:
self
.
_prepare_ran_callbacks
=
False
ran_status
=
libuv
.
uv_run
(
self
.
_ptr
,
libuv
.
UV_RUN_ONCE
)
# Note that we run queued callbacks when the prepare watcher runs,
...
...
src/greentest/greentest/testrunner.py
View file @
c4d3be2a
...
...
@@ -343,7 +343,17 @@ def _setup_environ():
# can't resolve package from __spec__ or __package__, falling
# back on __name__ and __path__". I have no idea what that means, but it seems harmless
# and is annoying.
os
.
environ
[
'PYTHONWARNINGS'
]
=
'default,ignore:::site:,ignore:::importlib._bootstrap:,ignore:::importlib._bootstrap_external:'
# pkgutil on Python 2 complains about missing __init__.py
# action:message:category:module:line
os
.
environ
[
'PYTHONWARNINGS'
]
=
','
.
join
([
'default'
,
'ignore:::site:'
,
'ignore:::pkgutil'
,
'ignore:::importlib._bootstrap:'
,
'ignore:::importlib._bootstrap_external:'
,
])
if
'PYTHONFAULTHANDLER'
not
in
os
.
environ
:
os
.
environ
[
'PYTHONFAULTHANDLER'
]
=
'true'
...
...
src/greentest/test__core_timer.py
View file @
c4d3be2a
...
...
@@ -113,12 +113,12 @@ class TestTimerResolution(Test):
loop
=
self
.
loop
for
_
in
range
(
1
0
):
for
_
in
range
(
1
5
):
# 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.
io
=
loop
.
io
(
fd
,
1
)
io
.
start
(
lambda
events
:
None
)
io
.
start
(
lambda
events
=
None
:
None
)
now
=
perf_counter
()
...
...
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