MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_class_subclassobject

Method test_class_subclassobject

testing/python/collect.py:178–186  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

176 )
177
178 def test_class_subclassobject(self, pytester: Pytester) -> None:
179 pytester.getmodulecol(
180 """
181 class test(object):
182 pass
183 """
184 )
185 result = pytester.runpytest()
186 result.stdout.fnmatch_lines(["*collected 0*"])
187
188 def test_static_method(self, pytester: Pytester) -> None:
189 """Support for collecting staticmethod tests (#2528, #2699)"""

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
getmodulecolMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected