Skip to content

Commit

Permalink
Add try-finally
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Feb 15, 2024
1 parent 16cb7cf commit e2d310d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def test_integration_common_definitions():
with open(config_file, "w") as file:
yaml.dump(config, file)

nomenclature.DataStructureDefinition("definitions")
try:
nomenclature.DataStructureDefinition("definitions")

pathlib.Path(config_file).unlink()
finally:
pathlib.Path(config_file).unlink()

0 comments on commit e2d310d

Please sign in to comment.