Skip to content

Commit

Permalink
Fix file leak in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Nov 22, 2024
1 parent 8b2196a commit 75d9112
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ def test_load_old_overrides_regression(
"type": "float",
"default": 0.1,
}
json.dump(
TMPFILE_DATA, open(override_configuration_path / "P20SV222021040709.json", "w")
)
with open(override_configuration_path / "P20SV222021040709.json", "w") as f:
json.dump(TMPFILE_DATA, f)
configs = mutable_configurations.load_with_mutable_configurations(
pipette_definition.PipetteModelVersionType(
pipette_type=types.PipetteModelType.p20,
Expand Down

0 comments on commit 75d9112

Please sign in to comment.