Skip to content

Instantly share code, notes, and snippets.

@Lothiraldan
Created February 7, 2012 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lothiraldan/1762265 to your computer and use it in GitHub Desktop.
Save Lothiraldan/1762265 to your computer and use it in GitHub Desktop.
Stdout bug with nosetests
import nose.core
import unittest
runner = nose.core.TextTestRunner()
# runner = unittest.TextTestRunner() # Does not work either
programm = nose.core.TestProgram(defaultTest='.', testRunner=runner,
argv=['nosetests'], exit=False)
# programm = nose.core.TestProgram(defaultTest='.', # This works
# argv=['nosetests'], exit=False)
print "Hello World !"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment