I used easy_install to install pytest on a mac and started writing tests for a project with a file structure likes so:
repo/ repo/app.py repo/settings.py rep
I fixed it by removing the top-level __init__.py in the parent folder of my sources.
__init__.py