Try the following:
test_module.py:
import logging import sys import nose logging.basicConfig(level=logging.INFO)
python test_module.py will get you:
test_module.test_me ... ok ---------------------------------------------------------------------- Ran 1 test in 0.001s OK INFO:root:all tests ok: True
Oleksiy
source share