commit:     a086ee8b7ea846799b43753e578421c9fee5c8f6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 28 21:25:39 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 28 21:50:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a086ee8b

dev-python/pytest: Use epytest to run tests

We have been avoiding epytest so far because it caused test failures.
However, it seems that only one test is affected, so just skip it.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest/pytest-6.2.5-r2.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild 
b/dev-python/pytest/pytest-6.2.5-r2.ebuild
index 4558e9276b96..c55df4717bb1 100644
--- a/dev-python/pytest/pytest-6.2.5-r2.ebuild
+++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild
@@ -55,7 +55,10 @@ python_test() {
 
        local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 
-       "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p xdist \
-               -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
-               die "Tests failed with ${EPYTHON}"
+       local EPYTEST_DESELECT=(
+               # broken by epytest args
+               testing/test_warnings.py::test_works_with_filterwarnings
+       )
+
+       epytest -p xdist -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
 }

Reply via email to