Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-subtests/
Date: Thu, 12 May 2022 14:18:13
Message-Id: 1652365085.be9aa9d6fdc1da5f664ead6408781808cd35efe3.mgorny@gentoo
1 commit: be9aa9d6fdc1da5f664ead6408781808cd35efe3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 14:04:56 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 14:18:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be9aa9d6
7
8 dev-python/pytest-subtests: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild | 13 +++++++++++--
13 1 file changed, 11 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild
16 index ff8252c2c7b9..025563e96424 100644
17 --- a/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild
18 +++ b/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
24 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
25
26 inherit distutils-r1
27
28 @@ -27,7 +27,8 @@ BDEPEND="
29 dev-python/setuptools_scm[${PYTHON_USEDEP}]
30 test? (
31 dev-python/pytest-xdist[${PYTHON_USEDEP}]
32 - )"
33 + )
34 +"
35
36 distutils_enable_tests pytest
37
38 @@ -36,5 +37,13 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
39 python_test() {
40 local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
41 local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked,pytest_subtests
42 + local EPYTEST_DESELECT=()
43 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
44 + # broken by output changes
45 + # https://github.com/pytest-dev/pytest-subtests/issues/69
46 + "tests/test_subtests.py::TestSubTest::test_simple_terminal_normal[unittest]"
47 + "tests/test_subtests.py::TestSubTest::test_simple_terminal_verbose[unittest]"
48 + )
49 +
50 epytest
51 }