Unittest - No longer necessary to prefix strings with hash

This commit is contained in:
Renato Alves 2014-07-18 20:07:02 +01:00
parent 3fd06257b7
commit c5d4efd4d2

View file

@ -8,10 +8,10 @@ from .taskd import Taskd
class BaseTestCase(unittest.TestCase): class BaseTestCase(unittest.TestCase):
def diag(self, out): def diag(self, out):
sys.stderr.write("# --- diag start ---\n") sys.stderr.write("--- diag start ---\n")
for line in out.split("\n"): for line in out.splitlines():
sys.stderr.write("# " + line + "\n") sys.stderr.write(line + '\n')
sys.stderr.write("# --- diag end ---\n") sys.stderr.write("--- diag end ---\n")
@unittest.skipIf(TASKW_SKIP, "TASKW_SKIP set, skipping task tests.") @unittest.skipIf(TASKW_SKIP, "TASKW_SKIP set, skipping task tests.")