I easy_install’d nose on my iMac some time in the last month, and tried to use it with options for the first time today, and I’ve found that a good number of the ones shown in ‘nosetests –help’ are actually not recognized when I run nosetests. Meanwhile, running nosetests with no options still works fine. This is 0.11.3 on OS X. Google gives me only references to plugins not being found. These are allegedly “built in”! Nobody replied on Twitter either, which is pretty odd in my experience. So here I am. Wtf is going on here?
For sure, -x and -v aren’t recognized, and -p *is* recognized. Using ‘-w’ with ‘.’ as an argument results in ‘no option -w’, but feeding it a non-existent directory results in a Python ValueError (/foo not found, or not a directory). Wtf?
In checking out /Library/Python/2.6/site-packages/nose-0.11.3-py2.6.egg/nose/config.py, I can see that these options are defined, so I’m a bit confused. Here’s a small sampling of output:
Brian-Joness-iMac:tests bjones$ nosetests -x Usage: nosetests [options] nosetests: error: no such option: -x Brian-Joness-iMac:tests bjones$ nosetests -v Usage: nosetests [options] nosetests: error: no such option: -v Brian-Joness-iMac:tests bjones$ nosetests .. ---------------------------------------------------------------------- Ran 2 tests in 0.360s OK
Clues hereby solicited.