Unittest - Bring back diag() for generating TAP output

* Still needs work to make sure output is displayed after the test
status (not ok ...) and not before.
This commit is contained in:
Renato Alves 2014-07-14 11:37:35 +01:00
parent 75fe62149d
commit d354d13263
10 changed files with 32 additions and 16 deletions

15
test/basetest/testing.py Normal file
View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
import unittest
import sys
class TestCase(unittest.TestCase):
def diag(self, out):
sys.stdout.write("# --- diag start ---\n")
for line in out.split("\n"):
sys.stdout.write("#" + line + "\n")
sys.stdout.write("# --- diag end ---\n")
# vim: ai sts=4 et sw=4