test(utils): simplify atomic write tests and remove stale note
This commit is contained in:
1 parent
d3f90e0944
commit
3fe109bf01
3 files changed
+17
-84
No files matched your search
@@ -568,9 +568,6 @@ def atomic_write_lines(path: Path, lines: Iterable[str], *, fsync: bool = True)
|
||||
directory this way) and ``EINVAL`` (filesystems that reject directory
|
||||
fsync). Any other directory fsync error propagates. The temp file is
|
||||
removed on every ``BaseException``.
|
||||
|
||||
#5291's subagent transcript store should call this helper when it merges
|
||||
instead of copying the temp/fsync/replace sequence.
|
||||
"""
|
||||
tmp = path.with_name(f".{path.name}.{uuid.uuid4().hex}.tmp")
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user