python: change pytest pkg/__init__.py to only collect the __init__.py Module

Previously it would collect the entire package, but this is not what
users expect.

Refs #3749
Fixes #8976
Fixes #9263
Fixes #9313
This commit is contained in:
Ran Benita
2023-05-27 14:42:19 +03:00
parent 2870157234
commit c8b1790ee7
9 changed files with 56 additions and 17 deletions

View File

@@ -0,0 +1,2 @@
def test_init():
pass

View File

@@ -1,2 +1,2 @@
def test():
def test_foo():
pass