Skip to content

Commit b5398ad

Browse files
committed
Remove test_load::test_trim_timing_info
`_trim` no longer removes `wtime` timing info.
1 parent 4cae8ea commit b5398ad

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

xbout/tests/test_load.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -935,20 +935,3 @@ def test_keep_yboundaries_doublenull_by_filenum(
935935
expected = expected.isel(y=slice(None, -2, None))
936936
xrt.assert_equal(expected, actual)
937937

938-
@pytest.mark.parametrize("is_restart", [False, True])
939-
def test_trim_timing_info(self, is_restart):
940-
ds = create_test_data(0)
941-
from xbout.load import _BOUT_PER_PROC_VARIABLES
942-
943-
# remove a couple of entries from _BOUT_PER_PROC_VARIABLES so we test that _trim
944-
# does not fail if not all of them are present
945-
_BOUT_PER_PROC_VARIABLES = _BOUT_PER_PROC_VARIABLES[:-2]
946-
947-
for v in _BOUT_PER_PROC_VARIABLES:
948-
ds[v] = 42.0
949-
ds = _trim(
950-
ds, guards={}, keep_boundaries={}, nxpe=1, nype=1, is_restart=is_restart
951-
)
952-
953-
expected = create_test_data(0)
954-
xrt.assert_equal(ds, expected)

0 commit comments

Comments
 (0)