commit: c4abfd878d8080d0247fb5ad1220bfd5868d94d3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 18 12:08:01 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 18 12:49:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4abfd87
dev-python/pyhamcrest: Deselect obsolete <dev-python/numpy-2 tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pyhamcrest/pyhamcrest-2.1.0.ebuild | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dev-python/pyhamcrest/pyhamcrest-2.1.0.ebuild
b/dev-python/pyhamcrest/pyhamcrest-2.1.0.ebuild
index 40ac59715027..ab34cf765e49 100644
--- a/dev-python/pyhamcrest/pyhamcrest-2.1.0.ebuild
+++ b/dev-python/pyhamcrest/pyhamcrest-2.1.0.ebuild
@@ -35,6 +35,17 @@ distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+python_test() {
+ local EPYTEST_DESELECT=(
+ # removed in numpy 2.0,
https://github.com/hamcrest/PyHamcrest/pull/248
+
tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_complex
+
tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_float
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}
+
python_install_all() {
use examples && dodoc -r examples
distutils-r1_python_install_all