Skip to content

Commit 125e300

Browse files
committed
Update error message on windows.
1 parent 747fe3b commit 125e300

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_simulation_execution_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def test_checkpoint_file_validation(self):
339339
# Test with non-existent directory
340340
with self.assertRaises(FileNotFoundError) as cm:
341341
options.checkpoint_file = "invalid/path/checkpoint.h5"
342-
self.assertEqual(str(cm.exception), "Checkpoint folder invalid/path does not exist.")
342+
expected_folder = str(Path("invalid") / "path")
343+
self.assertEqual(str(cm.exception), f"Checkpoint folder {expected_folder} does not exist.")
343344

344345
# Test with temporary directory
345346
with TemporaryDirectory() as temp_dir:

0 commit comments

Comments
 (0)