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 had the same problem. I fixed it by adding an empty __init__.py file to my tests directory.
__init__.py
tests