Bug in HTML generation in case of double failure

2 views
Skip to first unread message

Ronnie van 't Westeinde

unread,
Jul 14, 2009, 12:41:15 AM7/14/09
to Testoob
Hi,

I just came across a bug in the HTML generation (and XML) of testoob.
It fails
if both the testcase itself and the tearDown fail:

import unittest
import testoob
class SomeTestCases( unittest.TestCase ):
def tearDown(self):
raise TypeError
def test_case_testoob(self):
self.assertEqual(1,0)

if __name__ == '__main__':
testoob.main()

Run this code with the --html=something.html option, and you'll see
the issue.
I've made a fix and pushed it in ~rwestein/testoob/
html_double_fail_bug

Kind regards,
Ronnie

Ori Peleg

unread,
Jul 14, 2009, 3:19:17 AM7/14/09
to tes...@googlegroups.com
Thanks Ronnie, I'll merge later today.
--
Check out my blog: http://orip.org
Reply all
Reply to author
Forward
0 new messages