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

CI: ignore some warnings #4773

Merged
merged 2 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions xarray/tests/test_backends_file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def test_file_manager_read(tmpdir, file_cache):
manager.close()


# __init__ fails, thus, __del__ fails -> ignore the warning
@pytest.mark.filterwarnings("ignore:Exception ignored in")
def test_file_manager_invalid_kwargs():
with pytest.raises(TypeError):
CachingFileManager(open, "dummy", mode="w", invalid=True)
Expand Down
4 changes: 2 additions & 2 deletions xarray/tests/test_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,11 @@ def test_vectorize_dask_dtype_meta():
vectorize=True,
dask="parallelized",
output_dtypes=[int],
dask_gufunc_kwargs=dict(meta=np.ndarray((0, 0), dtype=np.float)),
dask_gufunc_kwargs=dict(meta=np.ndarray((0, 0), dtype=float)),
)

assert_identical(expected, actual)
assert np.float == actual.dtype
assert float == actual.dtype


def pandas_median_add(x, y):
Expand Down
3 changes: 3 additions & 0 deletions xarray/tests/test_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,9 @@ def test_getitem_error(self):
],
)
@pytest.mark.parametrize("xr_arg, np_arg", _PAD_XR_NP_ARGS)
@pytest.mark.filterwarnings(
r"ignore:dask.array.pad.+? converts integers to floats."
)
def test_pad(self, mode, xr_arg, np_arg):
data = np.arange(4 * 3 * 2).reshape(4, 3, 2)
v = self.cls(["x", "y", "z"], data)
Expand Down