add pytest-xdist-2.1.0 from main repo archive (still needed)

This commit is contained in:
Andreas Billmeier 2021-01-21 23:43:40 +01:00 committed by Andreas Billmeier
parent d8cc744aa2
commit e83f1b7650
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
5 changed files with 27 additions and 78 deletions

View File

@ -26,6 +26,7 @@
* add pillow-7.2.0 from main repo archive (still needed)
* add jsonpickle-1.4.1-r1 from main repo archive (still needed)
* update homeassistant-2021.1.2
* add pytest-xdist-2.1.0 from main repo archive (still needed)
2021-01-19
* bump google-nest-sdm-0.2.8

View File

@ -1,4 +1,3 @@
AUX pytest-xdist-1.32.0-timeout.patch 1864 BLAKE2B dcecdd06bc1e41a1206f5bf08cd19b5bbb35fb5bbf8e81aa188a75e43c648c68b052e3eb6e9041d1f92337a271e278cc60d4e9a7cbdaa43c0f155f5425373cdf SHA512 71520b9da47c272799c91f1856979bb087f7dda73bebb38f6288c2c688953853ce474e92608d84dc17316d22cd7cb78027144269662ce4cc6f62b923acf620ba
DIST pytest-xdist-1.32.0.tar.gz 67733 BLAKE2B da0ce4e43dc8752e4329ddcbc13a5f55f5bc120c13f39bb01916770d2dc1864197fd91f92bc55ba27cd74b0d837ac2d310980874cdf54761339b2cd654dd6e74 SHA512 f159b4653efb4afeff4124df484670d3c672e1014712f948390b25efc53096f8237258c83a5f1a9e688c52b4a756291cb731d37fdfa800707f556550a19cb0e8
EBUILD pytest-xdist-1.32.0.ebuild 1057 BLAKE2B 24ae6c66d8507e535cb96d6b6433a9aeffdd4d2fab5c0f5477f3a3dd11728c6f82b4d2d4c1eeff234106885041500a1c2b4dd7fb190f1366efbf6bc5cdf01651 SHA512 338885249960c62ede89719241aed470fe8bc38e006ac2bb725c8e811551363bc40c0838f039d0bdcc1ed12bc8edda9b68a02c9f6fdc184d52c5de61194b4a37
MISC metadata.xml 453 BLAKE2B 9480ffb520fafac8b32ec407fb065a89b67c085c7474032528e6a7489fdb26d288228cb75a502e407d92f0e53283bda58c2632e552d4daf65d37b78d33b3598b SHA512 13ec72148a023c16de4b51f02f8a34f5a29ba26bae56aebd8a89ca7a90f249126f92096d138d41d770eb1053618e58679211f468e3136f594514a936f414b265
DIST pytest-xdist-2.1.0.tar.gz 66332 BLAKE2B ac3c19a32bb9153537edfcf55bc656011661cf0d166da1aba969055a398616bb5782534a12ba354175be722c070fcfb2013d58405048814a3d11434a314e38b8 SHA512 85c69d8e649a19de5639738eae4cb213dc7323d96883ec82f39ab51a196346edd9fadbaf97f9763ac0dea104bc123d521264a39d2701878edfa76ce7e5bb347b
EBUILD pytest-xdist-2.1.0.ebuild 1147 BLAKE2B 5f8b2db3dda86e53857ae6155e4c13ec868f744b9113c012ee961cd651584f010125d3ae3539deb5b3bab106397211cea17de81f8c506e9d1fc7e2cc50a4f7b7 SHA512 c9ac3c5c1d0e4d728e0edaa5ae122248a0c6d7ef426573e50274385b0ccca14feb3dc4a1112e00f11a23bf8529a036430b8f239cfde386d0c9cc407dd19ba5a4
MISC metadata.xml 495 BLAKE2B e9b6fb711fef224e63b2b4c1137e46b1b0706d9c47f1bfbd2b3d9da78a5fa4d61fa9a78a94cf75a7e3e7b1d96ad15e6e38f00d3041e7ddda53a468139338b554 SHA512 e126cc5ef4e81af7c2cba1486988b0d119789763cc7d7b952fc6d6292153e7f1cbefd82fb472e7813eb0d4a65cfe15a9db662d59e661787d4ab8463d93277396

View File

@ -1,50 +0,0 @@
From 27519e8018ee199219ab223e0b31b76b4e950a2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 3 May 2020 11:23:33 +0200
Subject: [PATCH] Increase pexpect timeouts to prevent tests from failing
---
testing/acceptance_test.py | 2 +-
testing/test_looponfail.py | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index b6a4a94..a089baa 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -332,7 +332,7 @@ class TestDistribution:
time.sleep(10)
"""
)
- child = testdir.spawn_pytest("-n1 -v")
+ child = testdir.spawn_pytest("-n1 -v", expect_timeout=30.0)
child.expect(".*test_sleep.*")
child.kill(2) # keyboard interrupt
child.expect(".*KeyboardInterrupt.*")
diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py
index 94fccd7..a6ebebe 100644
--- a/testing/test_looponfail.py
+++ b/testing/test_looponfail.py
@@ -284,7 +284,8 @@ class TestFunctional:
)
# p = testdir.mkdir("sub").join(p1.basename)
# p1.move(p)
- child = testdir.spawn_pytest("-f %s --traceconfig" % p)
+ child = testdir.spawn_pytest("-f %s --traceconfig" % p,
+ expect_timeout=30.0)
child.expect("def test_one")
child.expect("x == 1")
child.expect("1 failed")
@@ -311,7 +312,8 @@ class TestFunctional:
pass
"""
)
- child = testdir.spawn_pytest("-f %s" % p)
+ child = testdir.spawn_pytest("-f %s" % p,
+ expect_timeout=30.0)
child.expect("1 xpass")
# child.expect("### LOOPONFAILING ####")
child.expect("waiting for changes")
--
2.26.2

View File

@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">pxml</remote-id>
<remote-id type="github">metagriffin/pxml</remote-id>
<remote-id type="bitbucket">pytest-dev/pytest-xdist</remote-id>
</upstream>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pytest-xdist</remote-id>
<maintainer status="unknown">
<email>pytest-dev@python.org,holger@merlinux.eu</email>
<name>holger krekel and contributors</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@ -3,8 +3,7 @@
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
inherit distutils-r1
@ -14,30 +13,29 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
# pleaes do not depend on pytest to avoid unnecessary USEDEP enforcement
# please do not depend on pytest to avoid unnecessary USEDEP enforcement
RDEPEND="
dev-python/execnet[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/filelock[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}"/pytest-xdist-1.32.0-timeout.patch
)
distutils_enable_tests pytest
python_test() {
distutils_install_for_testing
pytest -vv testing || die "Tests failed under ${EPYTHON}"
distutils_install_for_testing --via-root
# Skip a broken test
# https://github.com/pytest-dev/pytest-xdist/issues/601
pytest -vv testing --deselect \
testing/acceptance_test.py::TestWarnings::test_warning_captured_deprecated_in_pytest_6 \
|| die "Tests failed under ${EPYTHON}"
}