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
4b226aa7
Commit
4b226aa7
authored
May 04, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks for test__pool timeout under coverage in 3.7
Try to make it take less than the 200s timeout.
parent
e199273c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
src/greentest/greentest/patched_tests_setup.py
src/greentest/greentest/patched_tests_setup.py
+8
-0
src/greentest/greentest/testrunner.py
src/greentest/greentest/testrunner.py
+9
-0
src/greentest/test__pool.py
src/greentest/test__pool.py
+2
-2
No files found.
src/greentest/greentest/patched_tests_setup.py
View file @
4b226aa7
...
...
@@ -269,6 +269,14 @@ if LIBUV:
'test_socket.GeneralModuleTests.test_uknown_socket_family_repr'
,
]
if
PY37
:
disabled_tests
+=
[
# This test sometimes fails at line 358. It's apparently
# extremely sensitive to timing.
'test_selectors.PollSelectorTestCase.test_timeout'
,
]
if
OSX
:
disabled_tests
+=
[
# XXX: Starting when we upgraded from libuv 1.18.0
...
...
src/greentest/greentest/testrunner.py
View file @
4b226aa7
...
...
@@ -68,6 +68,15 @@ if RUNNING_ON_CI:
# spawn processes of its own
'test_signal.py'
,
]
if
RUN_LEAKCHECKS
and
PY3
:
# On a heavily loaded box, these can all take upwards of 200s
RUN_ALONE
+=
[
'test__pool.py'
,
'test__pywsgi.py'
,
'test__queue.py'
,
]
if
PYPY
:
# This often takes much longer on PyPy on CI.
TEST_FILE_OPTIONS
[
'test__threadpool.py'
]
=
{
'timeout'
:
180
}
...
...
src/greentest/test__pool.py
View file @
4b226aa7
...
...
@@ -297,7 +297,7 @@ LARGE_RANGE = 1000
if
(
greentest
.
PYPY
and
greentest
.
WIN
)
or
greentest
.
RUN_LEAKCHECKS
or
greentest
.
RUN_COVERAGE
:
# See comments in test__threadpool.py.
LARGE_RANGE
=
50
LARGE_RANGE
=
25
elif
greentest
.
RUNNING_ON_CI
or
greentest
.
EXPECT_POOR_TIMER_RESOLUTION
:
LARGE_RANGE
=
100
...
...
@@ -465,7 +465,7 @@ class TestPool(greentest.TestCase): # pylint:disable=too-many-public-methods
l
=
reader
()
self
.
assertEqual
(
sorted
(
l
),
iterable
)
@
greentest
.
ignores_leakcheck
class
TestPool2
(
TestPool
):
size
=
2
...
...
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