commit:     e5c01250e4989db923b0c7724bfac2dda6158c14
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 06:06:02 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 24 07:01:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5c01250

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

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

 dev-python/pytest-forked/pytest-forked-1.6.0.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-python/pytest-forked/pytest-forked-1.6.0.ebuild 
b/dev-python/pytest-forked/pytest-forked-1.6.0.ebuild
index cccc7f751ac1..3c55c44a4c2e 100644
--- a/dev-python/pytest-forked/pytest-forked-1.6.0.ebuild
+++ b/dev-python/pytest-forked/pytest-forked-1.6.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_COMPAT=( python3_{9..12} pypy3 )
 
 inherit distutils-r1 pypi
 
@@ -32,5 +32,15 @@ BDEPEND="
 distutils_enable_tests pytest
 
 python_test() {
+       [[ ${PV} != 1.6.0 ]] && die "Recheck the deselect, please"
+       local EPYTEST_DESELECT=()
+       if [[ ${EPYTHON} == python3.12 ]]; then
+               EPYTEST_DESELECT+=(
+                       # failing due to warnings coming from pytest
+                       # https://github.com/gentoo/gentoo/pull/31151
+                       testing/test_xfail_behavior.py::test_xfail
+               )
+       fi
+
        epytest -p no:flaky
 }

Reply via email to