commit:     d5919af9e17798efe3bb50a1088bf672972e41a7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  6 09:24:16 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  6 10:03:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5919af9

dev-python/python-box: Fix testing the C extension

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

 dev-python/python-box/python-box-7.0.1.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-python/python-box/python-box-7.0.1.ebuild 
b/dev-python/python-box/python-box-7.0.1.ebuild
index de2d866f1d92..c300e79fa62f 100644
--- a/dev-python/python-box/python-box-7.0.1.ebuild
+++ b/dev-python/python-box/python-box-7.0.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 
 inherit distutils-r1
 
@@ -38,3 +38,15 @@ BDEPEND="
 "
 
 distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # looks like broken tests
+               # https://github.com/cdgriffith/Box/issues/257
+               
test/test_box.py::TestBox::test_box_kwargs_should_not_be_included
+               test/test_box.py::TestBox::test_box_namespace
+       )
+
+       rm -rf box || die
+       epytest
+}

Reply via email to