equal
deleted
inserted
replaced
1 from __future__ import print_function |
1 from __future__ import absolute_import, print_function |
2 |
2 |
3 import unittest |
3 import unittest |
4 |
4 |
5 class TestResult(unittest._TextTestResult): |
5 class TestResult(unittest._TextTestResult): |
6 |
6 |
37 print("SKIP!", test, reason) |
37 print("SKIP!", test, reason) |
38 |
38 |
39 def addIgnore(self, test, reason): |
39 def addIgnore(self, test, reason): |
40 print("IGNORE!", test, reason) |
40 print("IGNORE!", test, reason) |
41 |
41 |
|
42 def onStart(self, test): |
|
43 print("ON_START!", test) |
|
44 |
|
45 def onEnd(self): |
|
46 print("ON_END!") |
|
47 |
42 def addOutputMismatch(self, test, ret, got, expected): |
48 def addOutputMismatch(self, test, ret, got, expected): |
43 return False |
49 return False |
44 |
50 |
45 def stopTest(self, test, interrupted=False): |
51 def stopTest(self, test, interrupted=False): |
46 super(TestResult, self).stopTest(test) |
52 super(TestResult, self).stopTest(test) |