pynose fixes nose to extend unittest and make testing easier
LGPL-2.1 License
Published by mdmintz 7 months ago
Published by mdmintz 8 months ago
Published by mdmintz about 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:
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
.
Published by mdmintz about 1 year ago
Published by mdmintz over 1 year ago
DeprecationWarning
"DeprecationWarning: pkg_resources is deprecated as an API."
)Published by mdmintz over 1 year ago
inspect
on Python 3.11AttributeError: module 'inspect' has no attribute 'getargspec'.
Published by mdmintz over 1 year ago
print()
statements-s
is always set now)-s
always being active.pdb
debugging to work.Published by mdmintz over 1 year ago