Skip to content

Commit

Permalink
fix filename context
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley committed Feb 18, 2025
1 parent a1baedd commit 383d13d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/iris/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def test_output_file(self, tmp_path):
test_cube_a.standard_name = "relative_humidity"
test_cube_a.units = cf_units.Unit("m")

with tmp_path / "tmp" as filename:
with open(filename, "w") as f:
iris.util.describe_diff(test_cube_a, test_cube_b, output_file=f)
f.close()
filename = tmp_path / "tmp"
with open(filename, "w") as f:
iris.util.describe_diff(test_cube_a, test_cube_b, output_file=f)
f.close()

_shared_utils.assert_files_equal(filename, "incompatible_cubes.str.txt")
_shared_utils.assert_files_equal(filename, "incompatible_cubes.str.txt")

0 comments on commit 383d13d

Please sign in to comment.