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
For me the problem was tests.py generated by Django along with tests directory. Removing tests.py solved the problem.
tests.py
tests