Skip to content

1.4.8 - Add options for capturing output

Compare
Choose a tag to compare
@mdmintz mdmintz released this 06 Aug 17:58
· 35 commits to master since this release
4bebb3c

Add options for capturing output

  • This resolves #11

To enable capture, set a Python env variable called "NOSE_CAPTURE" to "1".

It can be done like this in an __init__.py file:

import os
os.environ["NOSE_CAPTURE"] = "1"

This restores the default setting of nose, which is capturing output.
(Note that if output is captured, print() calls won't be seen.)

Capturing output can also be enabled with: --capture-output.