Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFAIL tests failing on ARM #2334

Merged
merged 2 commits into from
Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xarray/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
except ImportError:
pass

import platform
arm_xfail = pytest.mark.xfail(platform.machine() == 'aarch64' or
'arm' in platform.machine(),
reason='expected failure on ARM')


def _importorskip(modname, minversion=None):
try:
Expand Down
3 changes: 2 additions & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
requires_cftime, requires_dask, requires_h5fileobj, requires_h5netcdf,
requires_netCDF4, requires_pathlib, requires_pseudonetcdf, requires_pydap,
requires_pynio, requires_rasterio, requires_scipy,
requires_scipy_or_netCDF4, requires_zarr)
requires_scipy_or_netCDF4, requires_zarr, arm_xfail)
from .test_coding_times import (
_ALL_CALENDARS, _NON_STANDARD_CALENDARS, _STANDARD_CALENDARS)
from .test_dataset import create_test_data, create_append_test_data
Expand Down Expand Up @@ -400,6 +400,7 @@ def test_roundtrip_string_encoded_characters(self):
assert_identical(expected, actual)
assert actual['x'].encoding['_Encoding'] == 'ascii'

@arm_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]})
Expand Down
3 changes: 2 additions & 1 deletion xarray/tests/test_coding_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from . import (
assert_array_equal, has_cftime, has_cftime_or_netCDF4, has_dask,
requires_cftime, requires_cftime_or_netCDF4)
requires_cftime, requires_cftime_or_netCDF4, arm_xfail)

try:
from pandas.errors import OutOfBoundsDatetime
Expand Down Expand Up @@ -470,6 +470,7 @@ def test_decode_360_day_calendar():
assert_array_equal(actual, expected)


@arm_xfail
@pytest.mark.skipif(not has_cftime_or_netCDF4, reason='cftime not installed')
@pytest.mark.parametrize(
['num_dates', 'units', 'expected_list'],
Expand Down
3 changes: 2 additions & 1 deletion xarray/tests/test_duck_array_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from . import (
assert_array_equal, has_dask, has_np113, raises_regex, requires_cftime,
requires_dask)
requires_dask, arm_xfail)


class TestOps:
Expand Down Expand Up @@ -252,6 +252,7 @@ def assert_dask_array(da, dask):
assert isinstance(da.data, dask_array_type)


@arm_xfail
@pytest.mark.parametrize('dask', [False, True])
def test_datetime_reduce(dask):
time = np.array(pd.date_range('15/12/1999', periods=11))
Expand Down