From f5b8fe59565ead295dce0a42b701703e24ca8e40 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 20 Feb 2015 14:00:57 +0100 Subject: [tests] Add output when skipping incomplete tests in test/DocTests.py --- test/DocTests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/DocTests.py') diff --git a/test/DocTests.py b/test/DocTests.py index 07cb616e..671c4d35 100755 --- a/test/DocTests.py +++ b/test/DocTests.py @@ -173,7 +173,7 @@ class DocTests: except KeyError: input = None - if command and (output or validation): + if command and (output != None or validation): test_file_created = False if findex: scriptpath = os.path.dirname(os.path.realpath(__file__)) @@ -208,6 +208,12 @@ class DocTests: for line in unified_diff(output.split('\n'), verify.split('\n'), fromfile='generated', tofile='expected'): print(line) print + else: + if self.verbose > 0: + print test_id, ':', 'Skipped' + else: + sys.stdout.write('X') + if not self.verbose: print if len(failed) > 0: -- cgit v1.2.3