From 4ad30d4255d94ccf501a9e93bd44ef67d2124e58 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 20:20:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytest/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/runner.py b/src/_pytest/runner.py index 6c4ecae6e..65ed03ab8 100644 --- a/src/_pytest/runner.py +++ b/src/_pytest/runner.py @@ -168,7 +168,7 @@ def pytest_runtest_call(item: Item) -> None: del sys.last_type del sys.last_value del sys.last_traceback - if sys.version_info >= (3,12,0): + if sys.version_info >= (3, 12, 0): del sys.last_exc except AttributeError: pass @@ -178,7 +178,7 @@ def pytest_runtest_call(item: Item) -> None: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e - if sys.version_info >= (3,12,0): + if sys.version_info >= (3, 12, 0): sys.last_exc = e assert e.__traceback__ is not None # Skip *this* frame