commit:     cb9604994fcb1542ffe91178b75ecf5b1a0d80cf
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  1 17:12:48 2020 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Tue Dec  1 17:51:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb960499

dev-python/pytest-xdist: fix tests with setuptools>49

The new --via-root option for distutils_install_for_testing fixes tests
with setuptools>49 when the package isn't installed.
One test is still broken at the moment but it's an upstream issue so
we're skipping it for now.

Closes: https://bugs.gentoo.org/757591
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>

 dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild 
b/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild
index de9789a944b..27e096bc991 100644
--- a/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild
+++ b/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild
@@ -32,6 +32,10 @@ BDEPEND="
 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}"
 }

Reply via email to