Skip to content

Commit a5899a6

Browse files
authored
Merge pull request #1175 from xcube-dev/toniof-xxx-test_fix
fix dump tests
2 parents 0a4493c + f42dd13 commit a5899a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cli/test_dump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def test_dump_ds(self):
1414
result = self.invoke_cli(["dump", TEST_NC_FILE])
1515

1616
# Use a regex to accommodate the differing output formats produced by
17-
# xarray 2023.8.0 and 2024.2.0.
17+
# various xarray versions.
1818
output_regex = r"""<xarray.Dataset>( Size: 8MB)?
19-
Dimensions: \(lon: 360, lat: 180, time: 5, bnds: 2\)
19+
Dimensions:\s+\((?=.*lon: 360)(?=.*lat: 180)(?=.*time: 5)(?=.*bnds: 2).*?\)
2020
Coordinates:
2121
\* lon \(lon\) float64 (3kB )?-179\.5 -178\.5 -177\.5 \.\.\. 177\.5 178\.5 179\.5
2222
\* lat \(lat\) float64 (1kB )?-89\.5 -88\.5 -87\.5 -86\.5 \.\.\. (86\.5 )?87\.5 88\.5 89\.5

0 commit comments

Comments
 (0)