Expected failures are now treated as skipped tests

Before they were being treated as "passing" tests.
Since this might cause them to be silently ignored, classifying them
under "skipped" will ensure they won't go unnoticed.

Expected failures != skipped. The former will always be executed.
This commit is contained in:
Renato Alves 2015-05-25 18:15:31 +01:00
parent 53899296b1
commit 1302e69d51
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ if (open my $fh, '<', 'all.log')
for sort {$skipped{$b} <=> $skipped{$a}} keys %skipped;
print "\n";
print "Expected failures\n";
print "Expected failures (part of skipped)\n";
printf "%-32s %4d\n", $_, $expected{$_}
for sort {$expected{$b} <=> $expected{$a}} keys %expected;
}

View file

@ -148,7 +148,7 @@ class TAPTestResult(unittest.result.TestResult):
)
elif status == "EXPECTED_FAILURE":
self.stream.writeln("{0} {1} - {2}".format(
color("ok", "green"), self.testsRun, desc)
color("skip", "yellow"), self.testsRun, desc)
)
else:
self.stream.writeln("{0} {1} - {2}".format(