From e82725a58c2856b26fc24870942131094c29a61e Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Fri, 22 Nov 2013 14:52:46 +0100 Subject: [PATCH] Test : Add a message when a test is skipped --- tests/unit_timeside.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit_timeside.py b/tests/unit_timeside.py index 96d0e56..46bc353 100644 --- a/tests/unit_timeside.py +++ b/tests/unit_timeside.py @@ -74,6 +74,13 @@ class _TextTestResult(unittest.TestResult): elif self.dots: self.stream.write('F') + def addSkip(self, test, reason): + unittest.TestResult.addSkip(self, test, reason) + if self.showAll: + self.stream.writeln("SKIP : " + reason) + elif self.dots: + self.stream.write('S') + def printErrors(self): if self.dots or self.showAll: self.stream.writeln() -- 2.39.5