Skip to content

Commit 594b122

Browse files
committed
Fix test_engine
1 parent bfea52d commit 594b122

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

xarray/tests/test_backends.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4582,10 +4582,13 @@ def test_write_store(self) -> None:
45824582
pass
45834583

45844584
@requires_scipy
4585+
@requires_netCDF4
45854586
def test_engine(self) -> None:
45864587
data = create_test_data()
4588+
45874589
with pytest.raises(ValueError, match=r"unrecognized engine"):
45884590
data.to_netcdf("foo.nc", engine="foobar") # type: ignore[call-overload]
4591+
45894592
with pytest.raises(
45904593
ValueError,
45914594
match=re.escape(

0 commit comments

Comments
 (0)