Skip to content

Instantly share code, notes, and snippets.

@nloadholtes
Last active December 18, 2015 14:39
Show Gist options
  • Save nloadholtes/5798450 to your computer and use it in GitHub Desktop.
Save nloadholtes/5798450 to your computer and use it in GitHub Desktop.
nose main call
# For unittest based tests, this works:
if __name__ == '__main__':
unittest.main()
# And the equivilent in nose is this:
if __name__ == '__main__':
import nose
nose.run(defaultTest=__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment