commit:     2c185f16591226691a38764183f6b1a15f36308e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 06:21:29 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 24 07:01:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c185f16

dev-python/pytest-xdist: Enable py3.12

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

 dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild 
b/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
index cee4b9457782..57cbcf2c12f1 100644
--- a/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
+++ b/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{10..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
 
 inherit distutils-r1 pypi
 
@@ -41,5 +41,16 @@ python_test() {
        # since we disabled autoloading, force loading necessary plugins
        local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked
 
+       [[ ${PV} != 3.3.1 ]] && die "Recheck deselects, please!"
+       local EPYTEST_DESELECT=()
+       if [[ ${EPYTHON} == python3.12 ]]; then
+               EPYTEST_DESELECT+=(
+                       # failures due to warnings from pytest
+                       # https://github.com/pytest-dev/pytest-xdist/issues/914
+                       testing/acceptance_test.py::test_config_initialization
+                       testing/acceptance_test.py::test_collection_crash
+               )
+       fi
+
        epytest
 }

Reply via email to