nosetests is capturing the output of my print statements. How to circumvent this?

后端 未结 4 1869
后悔当初
后悔当初 2020-12-12 15:13

When I type

$ nosetests -v mytest.py

all my print outputs are captured when all tests pass. I want to see print outputs even everything pas

4条回答
  •  不思量自难忘°
    2020-12-12 15:49

    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)

提交回复
热议问题