Skip to content

Commit ebdb466

Browse files
jakkdlThe-Compiler
andauthored
Update src/_pytest/raises.py
Co-authored-by: Florian Bruhin <[email protected]>
1 parent ca1fa64 commit ebdb466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/raises.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def __exit__(
707707
if len(self.expected_exceptions) == 1:
708708
fail(f"DID NOT RAISE {self.expected_exceptions[0].__name__}")
709709
else:
710-
names = ", ".join(f"{x.__name__}" for x in self.expected_exceptions)
710+
names = ", ".join(x.__name__ for x in self.expected_exceptions)
711711
fail(f"DID NOT RAISE any of ({names})")
712712

713713
assert self.excinfo is not None, (

0 commit comments

Comments
 (0)