diff --git a/.travis.yml b/.travis.yml index c1f7ad357a6..573b3d5d145 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,10 @@ jobs: - env: TOXENV=pypy3-xdist python: 'pypy3' - - env: TOXENV=py35-xdist + # Coverage for: + # - test_supports_breakpoint_module_global + # - code specific to 3.5.0 + - env: TOXENV=py35 PYTEST_COVERAGE=1 dist: trusty python: '3.5.0' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f18ce08877a..b98a12a270c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,9 +20,6 @@ jobs: py35-xdist: python.version: '3.5' tox.env: 'py35-xdist' - # Coverage for: - # - test_supports_breakpoint_module_global - PYTEST_COVERAGE: '1' py36-xdist: python.version: '3.6' tox.env: 'py36-xdist' diff --git a/src/_pytest/compat.py b/src/_pytest/compat.py index 3d1531e77c5..d0b789515fe 100644 --- a/src/_pytest/compat.py +++ b/src/_pytest/compat.py @@ -350,7 +350,7 @@ def funcargnames(self): return self.fixturenames -if sys.version_info < (3, 5, 2): # pragma: no cover +if sys.version_info < (3, 5, 2): def overload(f): # noqa: F811 return f diff --git a/testing/python/raises.py b/testing/python/raises.py index 28b0715c01a..4607ef32768 100644 --- a/testing/python/raises.py +++ b/testing/python/raises.py @@ -166,7 +166,7 @@ def __call__(self): # Early versions of Python 3.5 have some bug causing the # __call__ frame to still refer to t even after everything # is done. This makes the test pass for them. - if sys.version_info < (3, 5, 2): # pragma: no cover + if sys.version_info < (3, 5, 2): del self raise ValueError