Updating 'missing_ok' flag for python>3.8

This commit is contained in:
Gandhali Kogekar
2023-06-22 17:18:47 -04:00
committed by Ray Speth
parent 7eeb698505
commit 865dec011c
+1 -3
View File
@@ -1368,9 +1368,7 @@ class TestCounterflowPremixedFlameNonIdeal(utilities.CanteraTest):
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())