Hello,
nose has a nice feature: it prints captured output along with failing test,
e.g.:
def test_index():
print "Hello"
assert 0
$ nosetests
FAIL: ...test_index
----------------------------------------------------------------------
>> assert 0
-------------------- >> begin captured stdout << ---------------------
Hello
----------------------------------------------------------------------
Alas, this doesn't work for logging statements.
E.g.:
def test_index():
log.info("HELLO")
assert 0
Running nosetests prints nothing as "captured output".
When running "nosetests -s" it does show up:
Running setup_config() from abc.websetup
09:26:07: INFO [abc.tests.functional.test_root] HELLO
That's in newly created Pylons0.9.6.1 project.
Any ideas why it is so and how it can be fixed?
--
Max
http://maxischenko.in.ua // http://www.linkedin.com/in/maksim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---