nosetests is capturing the output of my print statements. How to circumvent this?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 Question
00:49 Accepted answer (Score 228)
01:11 Answer 2 (Score 17)
01:24 Answer 3 (Score 10)
01:38 Answer 4 (Score 3)
02:05 Thank you
--
Full question
https://stackoverflow.com/questions/5975...
Answer 3 links:
http://travis-ci.org
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #nosetests
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 Question
00:49 Accepted answer (Score 228)
01:11 Answer 2 (Score 17)
01:24 Answer 3 (Score 10)
01:38 Answer 4 (Score 3)
02:05 Thank you
--
Full question
https://stackoverflow.com/questions/5975...
Answer 3 links:
http://travis-ci.org
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #nosetests
#avk47
ACCEPTED ANSWER
Score 229
Either:
$ nosetests --nocapture mytest.py
Or:
$ NOSE_NOCAPTURE=1 nosetests mytests.py
(it can also be specified in the nose.cfg file, see nosetests --help)
ANSWER 2
Score 17
Use
--nologcapture
it worked for me
ANSWER 3
Score 10
This was added recently to nose instead of --nocapture do this:
nosetests -s
ANSWER 4
Score 3
In order to integrate with http://travis-ci.org I have put this into .travis.yml:
script: "python setup.py nosetests -s"
where setup.py contains:
setup(
...
tests_require=['nose>=1.0'],
test_suite='nose.collector',
)