Skip to content

Commit d3407fe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 49bf3a3 commit d3407fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/pathlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ def maybe_delete_a_numbered_dir(path: Path) -> None:
268268
lock_path = None
269269
try:
270270
lock_path = create_cleanup_lock(path)
271-
with tempfile.TemporaryDirectory(
272-
prefix="garbage-", dir=path.parent
273-
) as garbage:
271+
with tempfile.TemporaryDirectory(prefix="garbage-", dir=path.parent) as garbage:
274272
path.replace(garbage)
275273
except OSError:
276274
# known races:

0 commit comments

Comments
 (0)