Skip to content

Commit

Permalink
CI: ignore some warnings (#4773)
Browse files Browse the repository at this point in the history
* CI: ignore some warnings

* remove test that is no longer necessary
  • Loading branch information
mathause authored Jan 7, 2021
1 parent 540b7ef commit 01a0faf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions xarray/tests/test_backends_file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ def test_file_manager_read(tmpdir, file_cache):
manager.close()


def test_file_manager_invalid_kwargs():
with pytest.raises(TypeError):
CachingFileManager(open, "dummy", mode="w", invalid=True)


def test_file_manager_acquire_context(tmpdir, file_cache):
path = str(tmpdir.join("testing.txt"))

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

0 comments on commit 01a0faf

Please sign in to comment.