Skip to content

Commit

Permalink
Remove test output file before running test (#2614)
Browse files Browse the repository at this point in the history
If the test output file happens to exist, the test will fail even though
there is nothing wrong.
  • Loading branch information
benclifford authored Mar 13, 2023
1 parent d038ac6 commit 33398b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parsl/tests/test_bash_apps/test_memoize_ignore_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def test_memo_stdout():

# this should be memoized, so not create benc.test.y
path_y = "test.memo.stdout.y"
assert not os.path.exists(path_y)

if os.path.exists(path_y):
os.remove(path_y)

no_checkpoint_stdout_app(stdout=path_y).result()
assert not os.path.exists(path_y)

Expand Down

0 comments on commit 33398b1

Please sign in to comment.