Skip to content

Commit 642fff8

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

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/_pytest/_code/code.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
except ModuleNotFoundError:
6969
pass # No backport is installed
7070

71+
7172
class Code:
7273
"""Wrapper around Python code objects."""
7374

@@ -935,17 +936,19 @@ def repr_excinfo(
935936
while e is not None and id(e) not in seen:
936937
seen.add(id(e))
937938
if isinstance(e, ExceptionGroupTypes):
938-
reprtraceback: Union[ReprTracebackNative, ReprTraceback] = ReprTracebackNative(
939+
reprtraceback: Union[
940+
ReprTracebackNative, ReprTraceback
941+
] = ReprTracebackNative(
939942
traceback.format_exception(
940-
type(excinfo.value), excinfo.value, excinfo.traceback[0]._rawentry
943+
type(excinfo.value),
944+
excinfo.value,
945+
excinfo.traceback[0]._rawentry,
941946
)
942947
)
943948
reprcrash: Optional[ReprFileLocation] = None
944949
elif excinfo_:
945950
reprtraceback = self.repr_traceback(excinfo_)
946-
reprcrash = (
947-
excinfo_._getreprcrash() if self.style != "value" else None
948-
)
951+
reprcrash = excinfo_._getreprcrash() if self.style != "value" else None
949952
else:
950953
# Fallback to native repr if the exception doesn't have a traceback:
951954
# ExceptionInfo objects require a full traceback to work.

0 commit comments

Comments
 (0)