From cc8c3f7c426aeb9553e126e5101195c4e237011a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Wed, 4 Sep 2019 21:13:14 +0300 Subject: [PATCH 01/10] Update test deps and also test py3.6, 3.7 and pypy3 on appveyor. --- .travis.yml | 56 +++++++++++++++------------------------ appveyor.yml | 14 ++++++---- ci/bootstrap.py | 9 ++++--- ci/templates/appveyor.yml | 6 ++++- tox.ini | 7 +++-- 5 files changed, 46 insertions(+), 46 deletions(-) diff --git a/.travis.yml b/.travis.yml index 766e64a6..c9947bb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,62 +19,48 @@ jobs: - stage: tests env: TOXENV=py27-pytest310-xdist27-coverage45 python: '2.7' - - env: TOXENV=py27-pytest43-xdist27-coverage45 - python: '2.7' - - env: TOXENV=py27-pytest44-xdist28-coverage45 - python: '2.7' - - env: TOXENV=py27-pytest45-xdist28-coverage45 + - env: TOXENV=py27-pytest46-xdist27-coverage45 python: '2.7' - env: TOXENV=py34-pytest310-xdist27-coverage45 python: '3.4' - - env: TOXENV=py34-pytest43-xdist27-coverage45 - python: '3.4' - - env: TOXENV=py34-pytest44-xdist28-coverage45 - python: '3.4' - - env: TOXENV=py34-pytest45-xdist28-coverage45 + - env: TOXENV=py34-pytest46-xdist27-coverage45 python: '3.4' - env: TOXENV=py35-pytest310-xdist27-coverage45 python: '3.5' - - env: TOXENV=py35-pytest43-xdist27-coverage45 - python: '3.5' - - env: TOXENV=py35-pytest44-xdist28-coverage45 - python: '3.5' - - env: TOXENV=py35-pytest45-xdist28-coverage45 + - env: TOXENV=py35-pytest46-xdist27-coverage45 python: '3.5' - env: TOXENV=py36-pytest310-xdist27-coverage45 python: '3.6' - - env: TOXENV=py36-pytest43-xdist27-coverage45 - python: '3.6' - - env: TOXENV=py36-pytest44-xdist28-coverage45 - python: '3.6' - - env: TOXENV=py36-pytest45-xdist28-coverage45 + - env: TOXENV=py36-pytest46-xdist27-coverage45 python: '3.6' - env: TOXENV=py37-pytest310-xdist27-coverage45 python: '3.7' - - env: TOXENV=py37-pytest43-xdist27-coverage45 - python: '3.7' - - env: TOXENV=py37-pytest44-xdist28-coverage45 - python: '3.7' - - env: TOXENV=py37-pytest45-xdist28-coverage45 + - env: TOXENV=py37-pytest46-xdist27-coverage45 python: '3.7' - env: TOXENV=pypy-pytest310-xdist27-coverage45 python: 'pypy2.7-6.0' - - env: TOXENV=pypy-pytest43-xdist27-coverage45 - python: 'pypy2.7-6.0' - - env: TOXENV=pypy-pytest44-xdist28-coverage45 - python: 'pypy2.7-6.0' - - env: TOXENV=pypy-pytest45-xdist28-coverage45 + - env: TOXENV=pypy-pytest46-xdist27-coverage45 python: 'pypy2.7-6.0' - env: TOXENV=pypy3-pytest310-xdist27-coverage45 python: 'pypy3.5-6.0' - - env: TOXENV=pypy3-pytest43-xdist27-coverage45 + - env: TOXENV=pypy3-pytest46-xdist27-coverage45 python: 'pypy3.5-6.0' - - env: TOXENV=pypy3-pytest44-xdist28-coverage45 + - env: TOXENV=py35-pytest46-xdist29-coverage45 + python: '3.5' + - env: TOXENV=py35-pytest51-xdist29-coverage45 + python: '3.5' + - env: TOXENV=py36-pytest46-xdist29-coverage45 + python: '3.6' + - env: TOXENV=py36-pytest51-xdist29-coverage45 + python: '3.6' + - env: TOXENV=py37-pytest46-xdist29-coverage45 + python: '3.7' + - env: TOXENV=py37-pytest51-xdist29-coverage45 + python: '3.7' + - env: TOXENV=pypy3-pytest46-xdist29-coverage45 python: 'pypy3.5-6.0' - - env: TOXENV=pypy3-pytest45-xdist28-coverage45 + - env: TOXENV=pypy3-pytest51-xdist29-coverage45 python: 'pypy3.5-6.0' - - env: TOXENV=py37-pytest310-xdist22-coverage45 - python: '3.7' - stage: examples python: '3.6' diff --git a/appveyor.yml b/appveyor.yml index d8476d81..21a36488 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,16 +4,20 @@ build: off environment: matrix: - TOXENV: check - - TOXENV: 'py27-pytest310-xdist27-coverage45,py27-pytest43-xdist27-coverage45,py27-pytest44-xdist28-coverage45,py27-pytest45-xdist28-coverage45' - - TOXENV: 'py34-pytest310-xdist27-coverage45,py34-pytest43-xdist27-coverage45,py34-pytest44-xdist28-coverage45,py34-pytest45-xdist28-coverage45' - - TOXENV: 'py35-pytest310-xdist27-coverage45,py35-pytest43-xdist27-coverage45,py35-pytest44-xdist28-coverage45,py35-pytest45-xdist28-coverage45' - - TOXENV: 'pypy-pytest310-xdist27-coverage45,pypy-pytest43-xdist27-coverage45,pypy-pytest44-xdist28-coverage45,pypy-pytest45-xdist28-coverage45' + - TOXENV: 'py27-pytest310-xdist27-coverage45,py27-pytest46-xdist27-coverage45' + - TOXENV: 'py34-pytest310-xdist27-coverage45,py34-pytest46-xdist27-coverage45' + - TOXENV: 'py35-pytest310-xdist27-coverage45,py35-pytest46-xdist27-coverage45,py35-pytest46-xdist29-coverage45,py35-pytest51-xdist29-coverage45' + - TOXENV: 'py36-pytest310-xdist27-coverage45,py36-pytest46-xdist27-coverage45,py36-pytest46-xdist29-coverage45,py36-pytest51-xdist29-coverage45' + - TOXENV: 'py37-pytest310-xdist27-coverage45,py37-pytest46-xdist27-coverage45,py37-pytest46-xdist29-coverage45,py37-pytest51-xdist29-coverage45' + - TOXENV: 'pypy-pytest310-xdist27-coverage45,pypy-pytest46-xdist27-coverage45' + - TOXENV: 'pypy3-pytest310-xdist27-coverage45,pypy3-pytest46-xdist27-coverage45,pypy3-pytest46-xdist29-coverage45,pypy3-pytest51-xdist29-coverage45' init: - ps: echo $env:TOXENV - ps: ls C:\Python* install: - - IF "%TOXENV:~0,4%" == "pypy" choco install --no-progress python.pypy + - IF "%TOXENV:~0,5%" == "pypy-" choco install --no-progress python.pypy + - IF "%TOXENV:~0,5%" == "pypy3-" choco install --no-progress pypy3 - SET PATH=C:\tools\pypy\pypy;%PATH% - C:\Python37\python -m pip install -U "virtualenv>=16.5.0" - C:\Python37\python -m pip install tox diff --git a/ci/bootstrap.py b/ci/bootstrap.py index b124a2cd..46df8a40 100755 --- a/ci/bootstrap.py +++ b/ci/bootstrap.py @@ -4,6 +4,7 @@ import os import sys +from collections import defaultdict from os.path import abspath from os.path import dirname from os.path import exists @@ -50,9 +51,11 @@ ] tox_environments = [line for line in tox_environments if line not in ['clean', 'report', 'docs', 'check']] - template_vars = {'tox_environments': tox_environments} - for py_ver in '27 34 35 py'.split(): - template_vars['py%s_environments' % py_ver] = [x for x in tox_environments if x.startswith('py' + py_ver + '-')] + template_vars = defaultdict(list) + template_vars['tox_environments'] = tox_environments + for env in tox_environments: + first, _ = env.split('-', 1) + template_vars['%s_environments' % first].append(env) for name in os.listdir(join("ci", "templates")): with open(join(base_path, name), "w") as fh: diff --git a/ci/templates/appveyor.yml b/ci/templates/appveyor.yml index 1597e7a0..bd4eb882 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -6,13 +6,17 @@ environment: - TOXENV: '{{ py27_environments|join(",") }}' - TOXENV: '{{ py34_environments|join(",") }}' - TOXENV: '{{ py35_environments|join(",") }}' + - TOXENV: '{{ py36_environments|join(",") }}' + - TOXENV: '{{ py37_environments|join(",") }}' - TOXENV: '{{ pypy_environments|join(",") }}' + - TOXENV: '{{ pypy3_environments|join(",") }}' init: - ps: echo $env:TOXENV - ps: ls C:\Python* install: - - IF "%TOXENV:~0,4%" == "pypy" choco install --no-progress python.pypy + - IF "%TOXENV:~0,5%" == "pypy-" choco install --no-progress python.pypy + - IF "%TOXENV:~0,5%" == "pypy3-" choco install --no-progress pypy3 - SET PATH=C:\tools\pypy\pypy;%PATH% - C:\Python37\python -m pip install -U "virtualenv>=16.5.0" - C:\Python37\python -m pip install tox diff --git a/tox.ini b/tox.ini index ee38ec89..70907317 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,8 @@ [tox] envlist = check - py{27,34,35,36,37,py,py3}-{pytest310-xdist27,pytest43-xdist27,pytest44-xdist28,pytest45-xdist28}-{coverage45} - py37-pytest310-xdist22-coverage45 + py{27,34,35,36,37,py,py3}-pytest{310,46}-xdist27-{coverage45} + py{35,36,37,py3}-pytest{46,51}-xdist29-{coverage45} docs [testenv] @@ -19,10 +19,13 @@ setenv = pytest43: _DEP_PYTEST=pytest==4.3.1 pytest44: _DEP_PYTEST=pytest==4.4.2 pytest45: _DEP_PYTEST=pytest==4.5.0 + pytest46: _DEP_PYTEST=pytest==4.6.5 + pytest51: _DEP_PYTEST=pytest==5.1.0 xdist22: _DEP_PYTESTXDIST=pytest-xdist==1.22.0 xdist27: _DEP_PYTESTXDIST=pytest-xdist==1.27.0 xdist28: _DEP_PYTESTXDIST=pytest-xdist==1.28.0 + xdist29: _DEP_PYTESTXDIST=pytest-xdist==1.29.0 coverage44: _DEP_COVERAGE=coverage==4.4.2 coverage45: _DEP_COVERAGE=coverage==4.5.3 From cc49d82d50838e2ae19d847ceb9a8159a88f9d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 5 Sep 2019 17:03:39 +0300 Subject: [PATCH 02/10] Use latest pypy. --- .travis.yml | 12 ++++++------ ci/templates/.travis.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9947bb2..12f6c3cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,13 +38,13 @@ jobs: - env: TOXENV=py37-pytest46-xdist27-coverage45 python: '3.7' - env: TOXENV=pypy-pytest310-xdist27-coverage45 - python: 'pypy2.7-6.0' + python: 'pypy' - env: TOXENV=pypy-pytest46-xdist27-coverage45 - python: 'pypy2.7-6.0' + python: 'pypy' - env: TOXENV=pypy3-pytest310-xdist27-coverage45 - python: 'pypy3.5-6.0' + python: 'pypy3' - env: TOXENV=pypy3-pytest46-xdist27-coverage45 - python: 'pypy3.5-6.0' + python: 'pypy3' - env: TOXENV=py35-pytest46-xdist29-coverage45 python: '3.5' - env: TOXENV=py35-pytest51-xdist29-coverage45 @@ -58,9 +58,9 @@ jobs: - env: TOXENV=py37-pytest51-xdist29-coverage45 python: '3.7' - env: TOXENV=pypy3-pytest46-xdist29-coverage45 - python: 'pypy3.5-6.0' + python: 'pypy3' - env: TOXENV=pypy3-pytest51-xdist29-coverage45 - python: 'pypy3.5-6.0' + python: 'pypy3' - stage: examples python: '3.6' diff --git a/ci/templates/.travis.yml b/ci/templates/.travis.yml index 60bf9efa..e55f9e9e 100644 --- a/ci/templates/.travis.yml +++ b/ci/templates/.travis.yml @@ -20,9 +20,9 @@ jobs: {%+ if not loop.first %}- {% else %} {% endif -%} env: TOXENV={{ env }} {% if env.startswith("pypy-") %} - python: 'pypy2.7-6.0' + python: 'pypy' {% elif env.startswith("pypy3-") %} - python: 'pypy3.5-6.0' + python: 'pypy3' {% else %} python: '{{ "{0[2]}.{0[3]}".format(env) }}' {% endif -%} From fe80bbc2cacec03a9371d52ee58efc1adfa4b2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 5 Sep 2019 17:04:24 +0300 Subject: [PATCH 03/10] Drop python 3.5 from the "recent deps list". --- .travis.yml | 4 ---- appveyor.yml | 2 +- tox.ini | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 12f6c3cc..c49cacc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,10 +45,6 @@ jobs: python: 'pypy3' - env: TOXENV=pypy3-pytest46-xdist27-coverage45 python: 'pypy3' - - env: TOXENV=py35-pytest46-xdist29-coverage45 - python: '3.5' - - env: TOXENV=py35-pytest51-xdist29-coverage45 - python: '3.5' - env: TOXENV=py36-pytest46-xdist29-coverage45 python: '3.6' - env: TOXENV=py36-pytest51-xdist29-coverage45 diff --git a/appveyor.yml b/appveyor.yml index 21a36488..12aae01b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,7 @@ environment: - TOXENV: check - TOXENV: 'py27-pytest310-xdist27-coverage45,py27-pytest46-xdist27-coverage45' - TOXENV: 'py34-pytest310-xdist27-coverage45,py34-pytest46-xdist27-coverage45' - - TOXENV: 'py35-pytest310-xdist27-coverage45,py35-pytest46-xdist27-coverage45,py35-pytest46-xdist29-coverage45,py35-pytest51-xdist29-coverage45' + - TOXENV: 'py35-pytest310-xdist27-coverage45,py35-pytest46-xdist27-coverage45' - TOXENV: 'py36-pytest310-xdist27-coverage45,py36-pytest46-xdist27-coverage45,py36-pytest46-xdist29-coverage45,py36-pytest51-xdist29-coverage45' - TOXENV: 'py37-pytest310-xdist27-coverage45,py37-pytest46-xdist27-coverage45,py37-pytest46-xdist29-coverage45,py37-pytest51-xdist29-coverage45' - TOXENV: 'pypy-pytest310-xdist27-coverage45,pypy-pytest46-xdist27-coverage45' diff --git a/tox.ini b/tox.ini index 70907317..736332a4 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = check py{27,34,35,36,37,py,py3}-pytest{310,46}-xdist27-{coverage45} - py{35,36,37,py3}-pytest{46,51}-xdist29-{coverage45} + py{36,37,py3}-pytest{46,51}-xdist29-{coverage45} docs [testenv] From 8887079a48e29d10a8860ed34673e38f5f5d96ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 5 Sep 2019 19:03:59 +0300 Subject: [PATCH 04/10] Bump up 4.5 coverage pin. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 736332a4..ea42dac1 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ setenv = xdist29: _DEP_PYTESTXDIST=pytest-xdist==1.29.0 coverage44: _DEP_COVERAGE=coverage==4.4.2 - coverage45: _DEP_COVERAGE=coverage==4.5.3 + coverage45: _DEP_COVERAGE=coverage==4.5.4 passenv = * From 062b576bd8bd09835f406088fba829733d2fc9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 6 Sep 2019 13:57:01 +0300 Subject: [PATCH 05/10] Disable assertion rewriting and skip some tests on PyPy3 - some strange optimizations be going on there. --- tests/test_pytest_cov.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index e745c956..503633ef 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -588,6 +588,7 @@ def test_fail(p): result = testdir.runpytest('-v', '--cov=%s' % script.dirpath(), '--cov-fail-under=100', + '--cov-report=html', script) result.stdout.fnmatch_lines_random([ @@ -912,6 +913,7 @@ def test_dist_missing_data(testdir): script = testdir.makepyfile(SCRIPT) result = testdir.runpytest('-v', + '--assert=plain', '--cov=%s' % script.dirpath(), '--cov-report=term-missing', '--dist=load', @@ -1038,6 +1040,7 @@ def test_run_target(): @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows") +@pytest.mark.skipif('sys.version_info[0] > 2 and platform.python_implementation() == "PyPy"', reason="broken on PyPy3") def test_multiprocessing_pool_close(testdir): pytest.importorskip('multiprocessing.util') @@ -1295,6 +1298,7 @@ def test_run(): ''') result = testdir.runpytest('-vv', + '--assert=plain', '--cov=%s' % script.dirpath(), '--cov-report=term-missing', script) @@ -1333,6 +1337,7 @@ def test_run(): ''') result = testdir.runpytest('-vv', + '--assert=plain', '--cov=%s' % script.dirpath(), '--cov-report=term-missing', script) @@ -1375,6 +1380,7 @@ def test_run(): ''') result = testdir.runpytest('-vv', + '--assert=plain', '--cov=%s' % script.dirpath(), '--cov-report=term-missing', script) @@ -1631,6 +1637,7 @@ def test_dist_boxed(testdir): script = testdir.makepyfile(SCRIPT_SIMPLE) result = testdir.runpytest('-v', + '--assert=plain', '--cov=%s' % script.dirpath(), '--boxed', script) @@ -1644,6 +1651,8 @@ def test_dist_boxed(testdir): @pytest.mark.skipif('sys.platform == "win32"') +@pytest.mark.skipif('sys.version_info[0] > 2 and platform.python_implementation() == "PyPy"', + reason="strange optimization on PyPy3") def test_dist_bare_cov(testdir): script = testdir.makepyfile(SCRIPT_SIMPLE) @@ -1825,6 +1834,7 @@ def bad_init(): def test_double_cov(testdir): script = testdir.makepyfile(SCRIPT_SIMPLE) result = testdir.runpytest('-v', + '--assert=plain', '--cov', '--cov=%s' % script.dirpath(), script) @@ -1839,6 +1849,7 @@ def test_double_cov(testdir): def test_double_cov2(testdir): script = testdir.makepyfile(SCRIPT_SIMPLE) result = testdir.runpytest('-v', + '--assert=plain', '--cov', '--cov', script) From ed09c6490576613f693ea0c4a25d4fc592682e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 6 Sep 2019 14:56:00 +0300 Subject: [PATCH 06/10] Fix prefix match. --- appveyor.yml | 2 +- ci/templates/appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 12aae01b..bbaa40b2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,7 +17,7 @@ init: - ps: ls C:\Python* install: - IF "%TOXENV:~0,5%" == "pypy-" choco install --no-progress python.pypy - - IF "%TOXENV:~0,5%" == "pypy3-" choco install --no-progress pypy3 + - IF "%TOXENV:~0,6%" == "pypy3-" choco install --no-progress pypy3 - SET PATH=C:\tools\pypy\pypy;%PATH% - C:\Python37\python -m pip install -U "virtualenv>=16.5.0" - C:\Python37\python -m pip install tox diff --git a/ci/templates/appveyor.yml b/ci/templates/appveyor.yml index bd4eb882..0d09ac9c 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -16,7 +16,7 @@ init: - ps: ls C:\Python* install: - IF "%TOXENV:~0,5%" == "pypy-" choco install --no-progress python.pypy - - IF "%TOXENV:~0,5%" == "pypy3-" choco install --no-progress pypy3 + - IF "%TOXENV:~0,6%" == "pypy3-" choco install --no-progress pypy3 - SET PATH=C:\tools\pypy\pypy;%PATH% - C:\Python37\python -m pip install -U "virtualenv>=16.5.0" - C:\Python37\python -m pip install tox From 3cf7c20e9535ab2ffb915233cba1cf9831d8eb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 6 Sep 2019 14:57:44 +0300 Subject: [PATCH 07/10] Enable py 3.8 tests. --- .travis.yml | 4 ++++ ci/templates/.travis.yml | 2 ++ tox.ini | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c49cacc5..94f9f250 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,10 @@ jobs: python: '3.7' - env: TOXENV=py37-pytest51-xdist29-coverage45 python: '3.7' + - env: TOXENV=py38-pytest46-xdist29-coverage45 + python: '3.8-dev' + - env: TOXENV=py38-pytest51-xdist29-coverage45 + python: '3.8-dev' - env: TOXENV=pypy3-pytest46-xdist29-coverage45 python: 'pypy3' - env: TOXENV=pypy3-pytest51-xdist29-coverage45 diff --git a/ci/templates/.travis.yml b/ci/templates/.travis.yml index e55f9e9e..14a7e1d8 100644 --- a/ci/templates/.travis.yml +++ b/ci/templates/.travis.yml @@ -23,6 +23,8 @@ jobs: python: 'pypy' {% elif env.startswith("pypy3-") %} python: 'pypy3' + {% elif env.startswith("py38-") %} + python: '3.8-dev' {% else %} python: '{{ "{0[2]}.{0[3]}".format(env) }}' {% endif -%} diff --git a/tox.ini b/tox.ini index ea42dac1..cf7fc42c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = check py{27,34,35,36,37,py,py3}-pytest{310,46}-xdist27-{coverage45} - py{36,37,py3}-pytest{46,51}-xdist29-{coverage45} + py{36,37,38,py3}-pytest{46,51}-xdist29-{coverage45} docs [testenv] From e7166bfe0fd26e458eefb83477de61aaac54edab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 19 Sep 2019 22:04:38 +0300 Subject: [PATCH 08/10] Oooof ... fix this finally (save it into a variable that doesn't get unset). Close #294. --- src/pytest_cov/embed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pytest_cov/embed.py b/src/pytest_cov/embed.py index 0c753402..7e081fee 100644 --- a/src/pytest_cov/embed.py +++ b/src/pytest_cov/embed.py @@ -97,8 +97,9 @@ def cleanup(): _active_cov = None _cleanup_in_progress = False if _pending_signal: + pending_singal = _pending_signal _pending_signal = None - _signal_cleanup_handler(*_pending_signal) + _signal_cleanup_handler(*pending_singal) multiprocessing_finish = cleanup # in case someone dared to use this internal From 615a0fd3be81b8a7488b27656662498ee347b475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 19 Sep 2019 22:52:12 +0300 Subject: [PATCH 09/10] Allow 3.8 to fail (pending resolve of https://bugs.python.org/issue38227). --- .travis.yml | 4 ++++ ci/templates/.travis.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 94f9f250..8da004eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,10 @@ stages: - lint - examples - tests +matrix: + fast_finish: true + allow_failures: + - python: '3.8-dev' jobs: include: - stage: lint diff --git a/ci/templates/.travis.yml b/ci/templates/.travis.yml index 14a7e1d8..f0189fc4 100644 --- a/ci/templates/.travis.yml +++ b/ci/templates/.travis.yml @@ -9,6 +9,10 @@ stages: - lint - examples - tests +matrix: + fast_finish: true + allow_failures: + - python: '3.8-dev' jobs: include: - stage: lint From ea10831b9f281268ac2feb5f9df94431a6434086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 20 Sep 2019 08:39:36 +0300 Subject: [PATCH 10/10] Disable the pypy3 env on Windows - it seems to have horrendous breakage. Eg: AttributeError: module 'io' has no attribute '_WindowsConsoleIO' --- appveyor.yml | 1 - ci/templates/appveyor.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index bbaa40b2..cdfd7a5d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,6 @@ environment: - TOXENV: 'py36-pytest310-xdist27-coverage45,py36-pytest46-xdist27-coverage45,py36-pytest46-xdist29-coverage45,py36-pytest51-xdist29-coverage45' - TOXENV: 'py37-pytest310-xdist27-coverage45,py37-pytest46-xdist27-coverage45,py37-pytest46-xdist29-coverage45,py37-pytest51-xdist29-coverage45' - TOXENV: 'pypy-pytest310-xdist27-coverage45,pypy-pytest46-xdist27-coverage45' - - TOXENV: 'pypy3-pytest310-xdist27-coverage45,pypy3-pytest46-xdist27-coverage45,pypy3-pytest46-xdist29-coverage45,pypy3-pytest51-xdist29-coverage45' init: - ps: echo $env:TOXENV diff --git a/ci/templates/appveyor.yml b/ci/templates/appveyor.yml index 0d09ac9c..8c3bf552 100644 --- a/ci/templates/appveyor.yml +++ b/ci/templates/appveyor.yml @@ -9,7 +9,6 @@ environment: - TOXENV: '{{ py36_environments|join(",") }}' - TOXENV: '{{ py37_environments|join(",") }}' - TOXENV: '{{ pypy_environments|join(",") }}' - - TOXENV: '{{ pypy3_environments|join(",") }}' init: - ps: echo $env:TOXENV