Skip to content

Commit ae83dbd

Browse files
committed
python: remove ancient Function.repr_failure(outerr) parameter
This has been asserted like this since 04e9197 (i.e. 11 years, pytest 1.0), seems safe to simply remove at this point.
1 parent 40c355f commit ae83dbd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,9 +1590,8 @@ def _prunetraceback(self, excinfo: ExceptionInfo) -> None:
15901590

15911591
# TODO: Type ignored -- breaks Liskov Substitution.
15921592
def repr_failure( # type: ignore[override] # noqa: F821
1593-
self, excinfo: ExceptionInfo[BaseException], outerr: None = None
1593+
self, excinfo: ExceptionInfo[BaseException],
15941594
) -> Union[str, TerminalRepr]:
1595-
assert outerr is None, "XXX outerr usage is deprecated"
15961595
style = self.config.getoption("tbstyle", "auto")
15971596
if style == "auto":
15981597
style = "long"

0 commit comments

Comments
 (0)