Skip to content

Commit 2916ac9

Browse files
committed
Tiny test fixes.
1 parent 5e321fc commit 2916ac9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/iris/tests/integration/netcdf/test_stringdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def test_read_no_encoding(self, tmp_path, data_encoding):
600600
# Check that we can read UTF-8 encoded data, even with no _Encoding attribute.
601601
# This is a common case in the wild, and now accepted by CF as a default.
602602
# However, other encodings will FAIL to decode.
603-
filepath = tmp_path / "utf8_no_encoding.nc"
603+
filepath = tmp_path / f"read_{data_encoding}_no_encoding.nc"
604604
testdata = make_testfile(
605605
testfile_path=filepath,
606606
encoding_str=data_encoding,
@@ -618,7 +618,7 @@ def test_read_no_encoding(self, tmp_path, data_encoding):
618618
cube.data
619619

620620
def test_read_wrong_encoding__fail(self, tmp_path):
621-
filepath = tmp_path / "missing_encoding.nc"
621+
filepath = tmp_path / "read_wrong_encoding.nc"
622622
testdata = make_testfile(
623623
testfile_path=filepath,
624624
encoding_str="utf-16",

0 commit comments

Comments
 (0)