Commit 23ccf979 authored by Jason Madden's avatar Jason Madden

Tweak some tests not to run with coverage

[skip appveyor]
parent d020472d
...@@ -16,6 +16,8 @@ import re ...@@ -16,6 +16,8 @@ import re
from greentest.sysinfo import RUNNING_ON_APPVEYOR as APPVEYOR from greentest.sysinfo import RUNNING_ON_APPVEYOR as APPVEYOR
from greentest.sysinfo import RUNNING_ON_TRAVIS as TRAVIS from greentest.sysinfo import RUNNING_ON_TRAVIS as TRAVIS
from greentest.sysinfo import RESOLVER_ARES as ARES from greentest.sysinfo import RESOLVER_ARES as ARES
from greentest.sysinfo import RUN_COVERAGE
from greentest.sysinfo import PYPY from greentest.sysinfo import PYPY
from greentest.sysinfo import PYPY3 from greentest.sysinfo import PYPY3
...@@ -29,6 +31,7 @@ from greentest.sysinfo import WIN ...@@ -29,6 +31,7 @@ from greentest.sysinfo import WIN
from greentest.sysinfo import OSX from greentest.sysinfo import OSX
from greentest.sysinfo import LIBUV from greentest.sysinfo import LIBUV
from greentest.sysinfo import CFFI_BACKEND
CPYTHON = not PYPY CPYTHON = not PYPY
...@@ -380,6 +383,17 @@ if LIBUV: ...@@ -380,6 +383,17 @@ if LIBUV:
'test_subprocess.ProcessTestCase.test_universal_newlines_communicate', 'test_subprocess.ProcessTestCase.test_universal_newlines_communicate',
] ]
if RUN_COVERAGE and CFFI_BACKEND:
disabled_tests += [
# This test hangs in this combo for some reason
'test_socket.GeneralModuleTests.test_sendall_interrupted',
# This can get a timeout exception instead of the Alarm
'test_socket.TCPTimeoutTest.testInterruptedTimeout',
# This test sometimes gets the wrong answer (due to changed timing?)
'test_socketserver.SocketServerTest.test_ForkingUDPServer',
]
def _make_run_with_original(mod_name, func_name): def _make_run_with_original(mod_name, func_name):
@contextlib.contextmanager @contextlib.contextmanager
def with_orig(): def with_orig():
......
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