No test.log output under Twisted/trial runner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Wishlist
|
Jonathan Lange |
Bug Description
Expecting _trial_
Not sure what the console message regarding "twisted-log" is all about...
% cat junk.py
from testtools import TestCase
from twisted.python import log
from testtools.
class MyTestCase(
run_tests_with = AsynchronousDef
def test_foo(self):
log.msg("OH NOZ")
% trial junk.py
MyTestCase
test_foo ... [FAIL]
=======
[FAIL]: junk.MyTestCase
Traceback (most recent call last):
Failure: testtools.
twisted-log
Traceback (most recent call last):
File "/usr/lib/
result = f(*args, **kw)
File "/home/
return self._get_
File "/home/
self.
File "/usr/lib/
if expr: raise self.failureExc
AssertionError
-------
Ran 1 tests in 0.017s
FAILED (failures=1)
% cat _trial_
2012-02-28 10:05:45-0600 [-] Log opened.
2012-02-28 10:05:45-0600 [-] using set_wakeup_fd
Changed in testtools: | |
status: | In Progress → Fix Committed |
milestone: | none → next |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
I suspect (I haven't checked) that we divert the twisted log to capture it internally - the _trial_temp global is a particular bit of anti-parallel pattern from trials early days that hasn't managed to be purged. There is something definitely wrong here though.