1 |
commit: cb9604994fcb1542ffe91178b75ecf5b1a0d80cf |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 17:12:48 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 17:51:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb960499 |
7 |
|
8 |
dev-python/pytest-xdist: fix tests with setuptools>49 |
9 |
|
10 |
The new --via-root option for distutils_install_for_testing fixes tests |
11 |
with setuptools>49 when the package isn't installed. |
12 |
One test is still broken at the moment but it's an upstream issue so |
13 |
we're skipping it for now. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/757591 |
16 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
17 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
18 |
|
19 |
dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild | 8 ++++++-- |
20 |
1 file changed, 6 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild |
23 |
index de9789a944b..27e096bc991 100644 |
24 |
--- a/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild |
25 |
+++ b/dev-python/pytest-xdist/pytest-xdist-2.1.0.ebuild |
26 |
@@ -32,6 +32,10 @@ BDEPEND=" |
27 |
distutils_enable_tests pytest |
28 |
|
29 |
python_test() { |
30 |
- distutils_install_for_testing |
31 |
- pytest -vv testing || die "Tests failed under ${EPYTHON}" |
32 |
+ distutils_install_for_testing --via-root |
33 |
+ # Skip a broken test |
34 |
+ # https://github.com/pytest-dev/pytest-xdist/issues/601 |
35 |
+ pytest -vv testing --deselect \ |
36 |
+ testing/acceptance_test.py::TestWarnings::test_warning_captured_deprecated_in_pytest_6 \ |
37 |
+ || die "Tests failed under ${EPYTHON}" |
38 |
} |