Skip to content

Commit

Permalink
Updating 'missing_ok' flag for python>3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gkogekar authored and speth committed Jun 22, 2023
1 parent 7eeb698 commit 865dec0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/python/test_onedim.py
Expand Up @@ -1368,9 +1368,7 @@ def test_mixture_averaged(self, saveReference=False):
self.assertFalse(bad, bad)

filename = self.test_work_path / "CounterflowPremixedFlame-h2-mix-RK.csv"
# In Python >= 3.8, this can be replaced by the missing_ok argument
if filename.is_file():
filename.unlink()
filename.unlink(missing_ok=True)

sim.write_csv(filename) # check output
self.assertTrue(filename.is_file())
Expand Down

0 comments on commit 865dec0

Please sign in to comment.