mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-08 12:08:13 -05:00
[Test] Avoid possible error overwriting existing file
This commit is contained in:
committed by
Ingmar Schoegl
parent
74340f8e03
commit
2928a4e66d
@@ -1287,6 +1287,7 @@ class TestDiffusionFlame:
|
||||
|
||||
# Test - Check if the parameters are saved and restored correctly
|
||||
filename = self.test_work_path / "two_point_control.yaml"
|
||||
filename.unlink(missing_ok=True)
|
||||
|
||||
original_settings = sim.flame.settings['continuation-method']
|
||||
sim.save(filename)
|
||||
|
||||
Reference in New Issue
Block a user