From 63c73380281e7201dde2be62dad6c6d58841c139 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 27 Mar 2022 16:56:23 +0200 Subject: [PATCH] Fix rename issue --- src/_pytest/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/main.py b/src/_pytest/main.py index 67bd04898..f2f0c6671 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -646,7 +646,7 @@ class Session(nodes.FSCollector): if self._notfound: errors = [] for arg, collectors in self._notfound: - if cols: + if collectors: errors.append( f"not found: {arg}\n(no name {arg!r} in any of {collectors!r})" )