Skip to content

Commit 4e54c1f

Browse files
committed
Skip Instances with --collect-only
1 parent 9140d4f commit 4e54c1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/terminal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ def _printcollecteditems(self, items):
617617
stack.pop()
618618
for col in needed_collectors[len(stack) :]:
619619
stack.append(col)
620-
# if col.name == "()":
621-
# continue
620+
if col.name == "()": # Skip Instances.
621+
continue
622622
indent = (len(stack) - 1) * " "
623623
self._tw.line("%s%s" % (indent, col))
624624

0 commit comments

Comments
 (0)