We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8903f commit d0bd01bCopy full SHA for d0bd01b
src/_pytest/python.py
@@ -596,6 +596,7 @@ def isinitpath(self, path):
596
def collect(self):
597
this_path = self.fspath.dirpath()
598
pkg_prefix = None
599
+ yield Module(this_path.join("__init__.py"), self)
600
for path in this_path.visit(rec=self._recurse, bf=True, sort=True):
601
# we will visit our own __init__.py file, in which case we skip it
602
if path.basename == "__init__.py" and path.dirpath() == this_path:
0 commit comments