[Test] Avoid possible error overwriting existing file

This commit is contained in:
Ray Speth 2025-01-03 14:03:35 -05:00 committed by Ingmar Schoegl
parent 74340f8e03
commit 2928a4e66d

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)