Commit 4b226aa7 authored by Jason Madden's avatar Jason Madden

Tweaks for test__pool timeout under coverage in 3.7

Try to make it take less than the 200s timeout.
parent e199273c
...@@ -269,6 +269,14 @@ if LIBUV: ...@@ -269,6 +269,14 @@ if LIBUV:
'test_socket.GeneralModuleTests.test_uknown_socket_family_repr', '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: if OSX:
disabled_tests += [ disabled_tests += [
# XXX: Starting when we upgraded from libuv 1.18.0 # XXX: Starting when we upgraded from libuv 1.18.0
......
...@@ -68,6 +68,15 @@ if RUNNING_ON_CI: ...@@ -68,6 +68,15 @@ if RUNNING_ON_CI:
# spawn processes of its own # spawn processes of its own
'test_signal.py', '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: if PYPY:
# This often takes much longer on PyPy on CI. # This often takes much longer on PyPy on CI.
TEST_FILE_OPTIONS['test__threadpool.py'] = {'timeout': 180} TEST_FILE_OPTIONS['test__threadpool.py'] = {'timeout': 180}
......
...@@ -297,7 +297,7 @@ LARGE_RANGE = 1000 ...@@ -297,7 +297,7 @@ LARGE_RANGE = 1000
if (greentest.PYPY and greentest.WIN) or greentest.RUN_LEAKCHECKS or greentest.RUN_COVERAGE: if (greentest.PYPY and greentest.WIN) or greentest.RUN_LEAKCHECKS or greentest.RUN_COVERAGE:
# See comments in test__threadpool.py. # See comments in test__threadpool.py.
LARGE_RANGE = 50 LARGE_RANGE = 25
elif greentest.RUNNING_ON_CI or greentest.EXPECT_POOR_TIMER_RESOLUTION: elif greentest.RUNNING_ON_CI or greentest.EXPECT_POOR_TIMER_RESOLUTION:
LARGE_RANGE = 100 LARGE_RANGE = 100
...@@ -465,7 +465,7 @@ class TestPool(greentest.TestCase): # pylint:disable=too-many-public-methods ...@@ -465,7 +465,7 @@ class TestPool(greentest.TestCase): # pylint:disable=too-many-public-methods
l = reader() l = reader()
self.assertEqual(sorted(l), iterable) self.assertEqual(sorted(l), iterable)
@greentest.ignores_leakcheck
class TestPool2(TestPool): class TestPool2(TestPool):
size = 2 size = 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment