From d3407fe624a77704cdac41fdb0ffe2bf23933f52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 4 Aug 2021 10:25:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytest/pathlib.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index a50ecd168..577c929bd 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -268,9 +268,7 @@ def maybe_delete_a_numbered_dir(path: Path) -> None: lock_path = None try: lock_path = create_cleanup_lock(path) - with tempfile.TemporaryDirectory( - prefix="garbage-", dir=path.parent - ) as garbage: + with tempfile.TemporaryDirectory(prefix="garbage-", dir=path.parent) as garbage: path.replace(garbage) except OSError: # known races: