From cb9604994fcb1542ffe91178b75ecf5b1a0d80cf Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Tue, 1 Dec 2020 18:12:48 +0100 Subject: 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 --- dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dev-python/pytest-xdist') 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 de9789a944b9..27e096bc9919 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}" } -- cgit v1.2.3-65-gdbad