Is there a way to run only doctests using Python Nose (nosetests)? . I do not want to run any unittests but only and only the doctests.
Thanks.
You can achieve that effect ignoring all regular test files.
This can be done easily using the -I or --ignore-files options and a regex like .*\.py.
An other way could be to save the doctests in a separate directory and launch nose on that.

In newer versions of nose this doesn't seem to work anymore.
run only doctests from python nose