@@ -164,6 +164,7 @@ def test_atomic_save_local_stages_next_to_destination(tmp_path, monkeypatch):
164164 after, because a successful transaction cleans the staging file up on commit. Paths are
165165 resolved before comparison so this doesn't false-fail on macOS where /tmp is a symlink to
166166 /private/tmp.
167+
167168 """
168169 sentinel_tmpdir = (tmp_path / "sentinel_tmpdir" ).resolve ()
169170 dest_dir = (tmp_path / "destination" ).resolve ()
@@ -194,9 +195,10 @@ def traced_mkstemp(*args, **kwargs):
194195def test_atomic_save_local_cleans_up_staging_on_failure (tmp_path ):
195196 """If the rename fails, the staging file must not leak in the destination dir.
196197
197- Patches os.replace to fail so we can observe what happens after a successful write but a
198- failed rename — the destination should not exist and the destination dir should be empty
199- (i.e. no staging file under any naming convention).
198+ Patches os.replace to fail so we can observe what happens after a successful write but a failed rename — the
199+ destination should not exist and the destination dir should be empty (i.e. no staging file under any naming
200+ convention).
201+
200202 """
201203 filepath = tmp_path / "checkpoint.ckpt"
202204
@@ -230,8 +232,9 @@ def test_atomic_save_local_preserves_existing_on_failure(tmp_path):
230232def test_atomic_save_local_missing_parent_raises (tmp_path ):
231233 """Parent directories are not auto-created — locks in current behavior.
232234
233- Lightning's checkpoint code creates dirs upstream (ModelCheckpoint.setup); a future refactor
234- silently creating them here would mask caller bugs.
235+ Lightning's checkpoint code creates dirs upstream (ModelCheckpoint.setup); a future refactor silently creating them
236+ here would mask caller bugs.
237+
235238 """
236239 filepath = tmp_path / "missing" / "checkpoint.ckpt"
237240
0 commit comments