commit: 933cf41235e6d6f253eb18ea76eb0115e7b1b72b Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Wed May 17 18:28:22 2023 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Wed May 17 18:28:22 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=933cf412
dev-python/numcodecs: fixed test detection issue Signed-off-by: Horea Christian <chr <AT> chymera.eu> dev-python/numcodecs/numcodecs-0.11.0.ebuild | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dev-python/numcodecs/numcodecs-0.11.0.ebuild b/dev-python/numcodecs/numcodecs-0.11.0.ebuild index 53c46ebe9..500a52b89 100644 --- a/dev-python/numcodecs/numcodecs-0.11.0.ebuild +++ b/dev-python/numcodecs/numcodecs-0.11.0.ebuild @@ -14,10 +14,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" -# Fails to collect tests for yet unknown reasons: -# https://github.com/zarr-developers/numcodecs/issues/304 -# --pyargs numcodecs fix proposed in thread doesn't seem to take effect. -RESTRICT="test" RDEPEND=" dev-python/cython[${PYTHON_USEDEP}] @@ -38,4 +34,16 @@ PATCHES=( "${FILESDIR}/${P}-nocov.patch" ) +# Reported upstream: +# https://github.com/zarr-developers/numcodecs/issues/436 +EPYTEST_DESELECT=( + tests/test_json.py::test_non_numpy_inputs + tests/test_msgpacks.py::test_non_numpy_inputs +) + distutils_enable_tests pytest + +python_test() { + cd "${T}" || die + epytest --pyargs numcodecs +}
