diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-22 17:28:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-22 17:28:08 +0100 |
commit | d79ab35b7ac170babebe8bc151fe5d037c16285c (patch) | |
tree | c774a4913f32e952079ae36fc6afd2dad747837f /dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch | |
parent | 992aa50a54a56c9e705ca4e85d809ec8989d74a2 (diff) |
gentoo auto-resync : 22:09:2022 - 17:28:08
Diffstat (limited to 'dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch')
-rw-r--r-- | dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch b/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch deleted file mode 100644 index 1f356e95b561..000000000000 --- a/dev-python/xarray/files/xarray-0.19.0-riscv_tests_datetime.patch +++ /dev/null @@ -1,73 +0,0 @@ -These tests are x86{_64}-centric because they rely on a specific result of -casting a float64 NaN to int64, which is undefined in the C standard. -See https://github.com/numpy/numpy/issues/8325 for details. - ---- a/xarray/tests/__init__.py -+++ b/xarray/tests/__init__.py -@@ -40,6 +40,12 @@ - ) - - -+riscv_xfail = pytest.mark.xfail( -+ "riscv" in platform.machine(), -+ reason="expected failure on RISC-V", -+) -+ -+ - def _importorskip(modname, minversion=None): - try: - mod = importlib.import_module(modname) ---- a/xarray/tests/test_backends.py -+++ b/xarray/tests/test_backends.py -@@ -71,6 +71,7 @@ - requires_scipy, - requires_scipy_or_netCDF4, - requires_zarr, -+ riscv_xfail, - ) - from .test_coding_times import ( - _ALL_CALENDARS, -@@ -492,6 +493,7 @@ - assert actual["x"].encoding["_Encoding"] == "ascii" - - @arm_xfail -+ @riscv_xfail - def test_roundtrip_numpy_datetime_data(self): - times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"]) - expected = Dataset({"t": ("t", times), "t0": times[0]}) ---- a/xarray/tests/test_coding_times.py -+++ b/xarray/tests/test_coding_times.py -@@ -36,6 +36,7 @@ - requires_cftime, - requires_cftime_1_4_1, - requires_dask, -+ riscv_xfail, - ) - - _NON_STANDARD_CALENDARS_SET = { -@@ -466,6 +467,7 @@ - - - @arm_xfail -+@riscv_xfail - @requires_cftime - @pytest.mark.parametrize( - ["num_dates", "units", "expected_list"], ---- a/xarray/tests/test_duck_array_ops.py -+++ b/xarray/tests/test_duck_array_ops.py -@@ -38,6 +38,7 @@ - requires_bottleneck, - requires_cftime, - requires_dask, -+ riscv_xfail, - ) - - -@@ -280,6 +281,7 @@ - - - @arm_xfail -+@riscv_xfail - @pytest.mark.filterwarnings("ignore::RuntimeWarning") - @pytest.mark.parametrize("dask", [False, True] if has_dask else [False]) - def test_datetime_mean(dask): |