I would like to be able to run a nose test script which accepts command line arguments. For example, something along the lines:
test.py
import nose, sys
For now I am using the following hack:
args = sys.argv[1:] sys.argv = sys.argv[0:1]
which just reads the argument into a local variable, and then deletes all the additional arguments in sys.argv so that nose does not get confused by them.
sys.argv