Skip to content

Commit

Permalink
Fix unclosed open file handle in test_reproducibility and test_toy_toy
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Sep 7, 2022
1 parent 3cdca5c commit e87cecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/framework/toy_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ def test_reproducibility(self):
"""# (no modules loaded)""",
"""# (no build environment defined)""",
]
env_file = open(reprod_dumpenv, "r").read()
env_file = read_file(reprod_dumpenv)
for pattern in patterns:
self.assertTrue(pattern in env_file)

Expand Down Expand Up @@ -2270,7 +2270,7 @@ def test_toy_toy(self):
"""module load toy/0.0-one""",
"""# (no build environment defined)""",
]
env_file = open(reprod_dumpenv, "r").read()
env_file = read_file(reprod_dumpenv)
for pattern in patterns:
self.assertTrue(pattern in env_file)

Expand Down

0 comments on commit e87cecc

Please sign in to comment.