File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -1408,9 +1408,7 @@ def test_hello(self):
14081408 """
14091409 )
14101410 result = testdir .runpytest ("--collect-only" )
1411- result .stdout .fnmatch_lines (
1412- ["*MyClass*" , "*MyInstance*" , "*MyFunction*test_hello*" ]
1413- )
1411+ result .stdout .fnmatch_lines (["*MyClass*" , "*MyFunction*test_hello*" ])
14141412
14151413
14161414def test_unorderable_types (testdir ):
You can’t perform that action at this time.
0 commit comments