python: remove ancient Function.repr_failure(outerr) parameter

This has been asserted like this since 04e9197fd6
(i.e. 11 years, pytest 1.0), seems safe to simply remove at this point.
This commit is contained in:
Ran Benita 2020-06-16 12:50:09 +03:00
parent 40c355f8c3
commit ae83dbd4cf
1 changed files with 1 additions and 2 deletions

View File

@ -1590,9 +1590,8 @@ class Function(PyobjMixin, nodes.Item):
# TODO: Type ignored -- breaks Liskov Substitution.
def repr_failure( # type: ignore[override] # noqa: F821
self, excinfo: ExceptionInfo[BaseException], outerr: None = None
self, excinfo: ExceptionInfo[BaseException],
) -> Union[str, TerminalRepr]:
assert outerr is None, "XXX outerr usage is deprecated"
style = self.config.getoption("tbstyle", "auto")
if style == "auto":
style = "long"