update pytest-cov (forgot the patches)

This commit is contained in:
Andreas Billmeier 2020-09-05 13:26:58 +02:00 committed by Andreas Billmeier
parent b0fe8f5732
commit 0c1356f2a0
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
6 changed files with 118 additions and 2 deletions

View File

@ -29,6 +29,7 @@
* bump brother-0.1.17
* update asyncssh-2.4.0
* update asyncssh-2.3.0
* update pytest-cov (forgot the patches)
2020-09-01
* bump xknx-0.13.0

View File

@ -1,7 +1,10 @@
AUX pytest-cov-2.8.1-disable-broken-tests.patch 763 BLAKE2B d36ec8acb8329cff8619f22cf485d2161d3ddda7740eea7f1516b5fee6e70bc597b1ca5ac79514be06eeccbd22a458381282622404152e7a41def6af3c3b15a4 SHA512 fc301e116072b7d77864f51a973b20274034569015c198fa8c05efa09d5863bbe9534d1ee1d2170a41485f914f4006cc6818332df76292aecb7e229cd61c7a63
AUX pytest-cov-2.8.1-latest-setuptools.patch 1247 BLAKE2B 24ac573f41ea6beff690330b26900e99f7454bbc74bb868246055bbd5ed9385f7fff9e72c4222c855dcfcd06e1cab6ac322ec9c085c3b3fdbb12137f8f64455b SHA512 699c4e0e5e3f0b8b145946fa319d19be4ddd42ab7f565af875ca37df0aac222d2b0af50f13ee52f19cf01c9e799a8b7e60ccf114b59530731f820c91311b1b5a
AUX pytest-cov-2.8.1-python38.patch 2522 BLAKE2B c09196ac945cd4b00acd75e45987be12ad1c8c251b679135fce1c2356d58396bc11b986f6d65ba0b946f5008eae70dcf18ceed68ba1ea50cb39bce303e710912 SHA512 3bd1fc80cfc76bdf643ed00bb59ecee1ceaf3c838f851cd65f844a5297ea33ab514ed441a5807ce6424ac461b10b629a8b6885851cb80336c5836c5f72ca6271
DIST pytest-cov-2.10.0.tar.gz 54570 BLAKE2B f9969a593d0ef4d3be636e66516388e879d32eb0b82ef63fd82ddc84f9cdf2e7186e695f8b1b6d7a825e7be2307837263c08b4654123895c2ee1b79a8cb2f416 SHA512 64347a140d5653afa8aa64dd703b1611e3462f185af9ff81b02c4309673e11603499be978fff3ccf33a5128db1f6d4efb0e822585080d35bcd22b4a1e964072e
DIST pytest-cov-2.6.1.tar.gz 35307 BLAKE2B 11974ff70ed5609d7db3c4c35f5b528b0ec36b48cfaf06974a090127706e0964841347592ac3f1e086f46800857ee10c05404045b6a4b467ffa278c2ee1e1957 SHA512 2dfd16e013d8bfbe5d14990f419291b651dd11560328a7e59b5449016d51b17f84d4ee3866fda866c3530389d206b1c4c67c84b23f097281c3963ffd19ea8caa
DIST pytest-cov-2.7.1.tar.gz 42121 BLAKE2B 4136a1ad33bad35b0d8f161be15b33ddaab69e68cf34f1db6d3a92ad31b84da18ea2051d2ad67e006acbe5dd2a49032fa78b8a564d97b23ca283eb0563e9e77c SHA512 dbdaa8b1ed7b97885671b1bd46234df51552754913603e93c4e0caa2f1e09c7efba84908d49bdad459348a989ec4efaa97567a51a7ccb38c5d4e37a0d9f97ca7
EBUILD pytest-cov-2.10.0.ebuild 1379 BLAKE2B af9d3b41059044fb681a5cc95a2cc54ff154e254fa45c41404572fbd5ce7583d7a9e94bfd8e8b9a916dffad18a4cf4dd69a86ee36a0c21c47ab84403800693d6 SHA512 1d4c068babaf0c6b34d755e4de2eaf55b3e933c2f2e417874b4653cd72f6793966b28b0df9e3bfff8f0d7ffd45ab0f82b2580b74f2d65eeff0897833c272f4b5
EBUILD pytest-cov-2.10.0.ebuild 1381 BLAKE2B 51a07a61c6c380bd2fdb76347114a93793b6a557e9f3ea4c27d88dca56cba2509ec02b974a427874818dcf38fe0f2ecd7f45ebbed98e935278199fcdb14c8255 SHA512 aa75d63a86fdd9dcca8caf0598433218be08bd34a59bfdeedcc3aa99ff29759004e08000c8f2adec073e09f852414817cf80842c2328846f0242281c86f481c3
EBUILD pytest-cov-2.6.1.ebuild 674 BLAKE2B a995272e6764ced8504d07fc2cae14bf4dd3824b4a9dcbd1285abd66284c3ddd0f0d4de1617e6749ec3a3598827fbfe21503da3b36d7b96d8b5850ed14513c31 SHA512 4c3168c3024180a0571a5074d9077e718afcea24cae82b8645c4946c28fe643332f5241ae2ce06db3e9b9fa64bd2d4c016bbd92b5ca02ff44367bb6cdeded22c
EBUILD pytest-cov-2.7.1.ebuild 683 BLAKE2B ee3fe19046cebf07c663ee02337e826b88ac364952a77767dd2f520dc7269b909c85301a72094b03cb2a2dcfc43a325191175b2c5ef778d67ced18fbc5a3a1c1 SHA512 3c8489723c434b6a81ad5a5078971022c7870cc5f61062d5574ed73b949b2974ab9b7d2f66fd3aab3b50060f4143e3ce1c45f2ffa34c9531ba55d63618f82488
MISC metadata.xml 459 BLAKE2B 8a721ec24cc58fcaa3ada2a0a574dcc87f9337b3de4f90d833f71049e4c2e9f1761ee824d64e1f69c4302e42ea21459a69a98ee790db6cb2732324fd34b30558 SHA512 06ca6539cbd732bae4995c552cb8df225f26a13fdb0e9128d7726373be2eff9b72e915a1ed7a77a8b5773a3edf8d17e0104f745b96d61553c5361503709f4498

View File

@ -0,0 +1,20 @@
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
index e79e9aa..e5ef2c1 100644
--- a/tests/test_pytest_cov.py
+++ b/tests/test_pytest_cov.py
@@ -820,6 +820,7 @@ parallel = true
assert result.ret == 0
+@pytest.mark.skip(reason="test is broken")
def test_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch):
stuff = testdir.mkdir('stuff')
parent_script = stuff.join('parent_script.py')
@@ -951,6 +952,7 @@ def test_invalid_coverage_source(testdir):
assert not matching_lines
+@pytest.mark.skip(reason="test is broken")
@pytest.mark.skipif("'dev' in pytest.__version__")
@pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
def test_dist_missing_data(testdir):

View File

@ -0,0 +1,40 @@
diff --git a/setup.py b/setup.py
index 1305b23..3a5803e 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ def read(*names, **kwargs):
class BuildWithPTH(build):
- def run(self):
+ def run(self, **kwargs):
build.run(self)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.build_lib, basename(path))
@@ -37,7 +37,7 @@ class BuildWithPTH(build):
class EasyInstallWithPTH(easy_install):
- def run(self):
+ def run(self, **kwargs):
easy_install.run(self)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))
@@ -45,7 +45,7 @@ class EasyInstallWithPTH(easy_install):
class InstallLibWithPTH(install_lib):
- def run(self):
+ def run(self, **kwargs):
install_lib.run(self)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))
@@ -57,7 +57,7 @@ class InstallLibWithPTH(install_lib):
class DevelopWithPTH(develop):
- def run(self):
+ def run(self, **kwargs):
develop.run(self)
path = join(dirname(__file__), 'src', 'pytest-cov.pth')
dest = join(self.install_dir, basename(path))

View File

@ -0,0 +1,52 @@
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
index e79e9aa..198478b 100644
--- a/tests/test_pytest_cov.py
+++ b/tests/test_pytest_cov.py
@@ -662,6 +662,7 @@ def test_fail(p):
])
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="Seems buggy on python3.8")
@pytest.mark.skipif('sys.platform == "win32" or platform.python_implementation() == "PyPy"')
def test_dist_combine_racecondition(testdir):
script = testdir.makepyfile("""
@@ -1018,6 +1019,7 @@ def test_funcarg_not_active(testdir):
assert result.ret == 0
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
@pytest.mark.skipif("sys.version_info[0] < 3", reason="no context manager api on Python 2")
@pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
@pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy")
@@ -1059,6 +1061,7 @@ def test_run_target():
assert result.ret == 0
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
@pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
@pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy")
def test_multiprocessing_pool_terminate(testdir):
@@ -1141,6 +1144,7 @@ def test_run_target():
assert result.ret == 0
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
@pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
def test_multiprocessing_process(testdir):
pytest.importorskip('multiprocessing.util')
@@ -1171,6 +1175,7 @@ def test_run_target():
assert result.ret == 0
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
@pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
def test_multiprocessing_process_no_source(testdir):
pytest.importorskip('multiprocessing.util')
@@ -1201,6 +1206,7 @@ def test_run_target():
assert result.ret == 0
+@pytest.mark.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
@pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
def test_multiprocessing_process_with_terminate(testdir):
pytest.importorskip('multiprocessing.util')

View File

@ -34,7 +34,7 @@ DEPEND="
PATCHES=(
# Bug 597708
"${FILESDIR}/${PN}-2.8.1-disable-broken-tests.patch"
# "${FILESDIR}/${PN}-2.8.1-disable-broken-tests.patch"
"${FILESDIR}/${PN}-2.8.1-latest-setuptools.patch"
# https://github.com/pytest-dev/pytest-cov/issues/365
"${FILESDIR}/pytest-cov-2.8.1-python38.patch"