From 3b677f79f4910db731d0cc1b204541d54717dc62 Mon Sep 17 00:00:00 2001 From: symonk Date: Mon, 16 Nov 2020 17:36:06 +0000 Subject: [PATCH] stop assigning nextline if its potentially not used --- src/_pytest/pytester.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 0e1dffb9d..e55b3ec1a 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -1819,7 +1819,6 @@ class LineMatcher: raise TypeError("invalid type for lines2: {}".format(type(lines2).__name__)) lines2 = self._getlines(lines2) lines1 = self.lines[:] - nextline = None extralines = [] __tracebackhide__ = True wnick = len(match_nickname) + 1