Closed mdmintz closed 1 year ago
To enable capture, set a Python env variable called "NOSE_CAPTURE" to "1".
It can be done like this in an __init__.py file:
__init__.py
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.)
nose
print()
(Capturing output should also be enabled with: --capture-output.)
--capture-output
This was resolved in 1.4.8 - https://github.com/mdmintz/pynose/releases/tag/v1.4.8
1.4.8
Capture output if "NOSE_CAPTURE" is set to "1" (or if "--capture-output")
To enable capture, set a Python env variable called "NOSE_CAPTURE" to "1".
It can be done like this in an
__init__.py
file: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 should also be enabled with:
--capture-output
.)