commit:     214b26e564b13c56363258163cda0c16173b3636
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 03:33:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 03:33:02 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=214b26e5

dev-python/xarray: skip tests caused by numpy quirk/bug

See bug for details, it looks like it's a numpy quirk/feature/misfeature...?

Closes: https://bugs.gentoo.org/916460
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/xarray/xarray-2023.10.1-r1.ebuild | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/dev-python/xarray/xarray-2023.10.1-r1.ebuild 
b/dev-python/xarray/xarray-2023.10.1-r1.ebuild
index 2acfcd5dc6b8..287b9c7cf488 100644
--- a/dev-python/xarray/xarray-2023.10.1-r1.ebuild
+++ b/dev-python/xarray/xarray-2023.10.1-r1.ebuild
@@ -18,6 +18,7 @@ HOMEPAGE="
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="big-endian"
 
 RDEPEND="
        >=dev-python/numpy-1.22[${PYTHON_USEDEP}]
@@ -58,5 +59,25 @@ EPYTEST_DESELECT=(
 
 python_test() {
        local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+
+       if ! has_version ">=dev-python/scipy-1.4[${PYTHON_USEDEP}]" ; then
+               EPYTEST_DESELECT+=(
+                       
'xarray/tests/test_missing.py::test_interpolate_na_2d[coords1]'
+               )
+       fi
+
+       if use big-endian ; then
+               EPYTEST_DESELECT+=(
+                       # Appears to be a numpy issue in display? See bug 
#916460.
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-20-True]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-09-21T00:12:44.145224808-ns-float64-1e+30-True]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225216-ns-float64--9.223372036854776e+18-True]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145224193-ns-int64-None-False]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:12:43.145225-us-int64-None-False]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1970-01-01T00:00:01.000001-us-int64-None-False]'
+                       
'xarray/tests/test_coding_times.py::test_roundtrip_datetime64_nanosecond_precision[1677-09-21T00:21:52.901038080-ns-float32-20.0-True]'
+               )
+       fi
+
        epytest -p xdist.plugin -n "$(makeopts_jobs)" --dist=worksteal
 }

Reply via email to