Python nosetests runs tests twice
Question: I'm setting up a Python Continuous Integration server, using Jenkins, and
nosetests keeps running the same tests twice. I'm not importing the tests
anywhere. Here's the command I'm running:

    
    
    nosetests --with-xcoverage --with-xunit --all-modules --traverse-namespace --cover-package=app --cover-inclusive --cover-erase -x
    

Any ideas? It's a Flask-Restful app.


Answer: I had a similar issue. After turning up verbosity (as suggested by Schollii
above) and comparing notes on [this
question](http://stackoverflow.com/questions/6197940/nosetest-including-
unwanted-parent-directories) what worked for me was deleting the **init**.py
(and **init**.pyc of course) in my main code folder (of which tests were a
subdirectory).

