From ae83dbd4cfd08c027d9d9771db8aaa0474836ac6 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 16 Jun 2020 12:50:09 +0300 Subject: [PATCH] python: remove ancient Function.repr_failure(outerr) parameter This has been asserted like this since 04e9197fd6138adaf953ba8fef370 (i.e. 11 years, pytest 1.0), seems safe to simply remove at this point. --- src/_pytest/python.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index c5cd14bdc..751e17407 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -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"