[Test] Avoid possible error overwriting existing file

This commit is contained in:
Ray Speth
2025-02-01 14:15:18 -06:00
committed by Ingmar Schoegl
parent 74340f8e03
commit 2928a4e66d
+1
View File
@@ -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)