Skip to content

Commit 3b677f7

Browse files
committed
stop assigning nextline if its potentially not used
1 parent 537215a commit 3b677f7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/_pytest/pytester.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,6 @@ def _match_lines(
18191819
raise TypeError("invalid type for lines2: {}".format(type(lines2).__name__))
18201820
lines2 = self._getlines(lines2)
18211821
lines1 = self.lines[:]
1822-
nextline = None
18231822
extralines = []
18241823
__tracebackhide__ = True
18251824
wnick = len(match_nickname) + 1

0 commit comments

Comments
 (0)