Skip to content

Commit

Permalink
test(eplus): dont cleanup tempfile to avoid windows file lock error
Browse files Browse the repository at this point in the history
  • Loading branch information
taoning committed Nov 6, 2024
1 parent 950cf81 commit 98e2037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_eplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_output_meter(medium_office):
def test_energyplussetup(medium_office):
"""Test running EnergyPlusSetup."""

with tempfile.TemporaryDirectory() as tmpdir:
ep = EnergyPlusSetup(medium_office)
ep.run(output_directory=tmpdir, design_day=True)
assert (Path(tmpdir)/"eplusout.csv").exists()
tmpdir = tempfile.mkdtemp()
ep = EnergyPlusSetup(medium_office)
ep.run(output_directory=tmpdir, design_day=True)
assert (Path(tmpdir)/"eplusout.csv").exists()

0 comments on commit 98e2037

Please sign in to comment.