Skip to content

Commit 3e34b46

Browse files
committed
Capture more warnings
1 parent cb3801f commit 3e34b46

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

xbout/tests/test_load.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,10 @@ def test_restarts(self):
633633
datapath = Path(__file__).parent.joinpath(
634634
"data", "restart", "BOUT.restart.*.nc"
635635
)
636-
ds = open_boutdataset(datapath, keep_xboundaries=True, keep_yboundaries=True)
636+
with pytest.warns(UserWarning):
637+
ds = open_boutdataset(
638+
datapath, keep_xboundaries=True, keep_yboundaries=True
639+
)
637640

638641
assert "T" in ds
639642

0 commit comments

Comments
 (0)