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 20, 2023
1 parent c01f3c1 commit d655feb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/python/test_onedim.py
Expand Up @@ -1356,9 +1356,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 d655feb

Please sign in to comment.