Skip to content
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: 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