summaryrefslogtreecommitdiff
path: root/python/subunit/test_results.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-04-11 15:56:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-04-11 15:56:05 +0200
commit990cf93fb02250ccbd42153fc1f6b87b867d977e (patch)
tree67a78fcacffd4483eb94c166e4bdda93998d399d /python/subunit/test_results.py
parent67a43dcef5f1511398ef32052d1220a0ef35ffcf (diff)
downloadsubunit-git-990cf93fb02250ccbd42153fc1f6b87b867d977e.tar.gz
Filter errors as well.
Diffstat (limited to 'python/subunit/test_results.py')
-rw-r--r--python/subunit/test_results.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py
index b3308ea..4e642ea 100644
--- a/python/subunit/test_results.py
+++ b/python/subunit/test_results.py
@@ -339,8 +339,12 @@ class TestResultFilter(TestResultDecorator):
def addError(self, test, err=None, details=None):
if (self.filter_predicate(test, 'error', err, details)):
- self._buffered_calls.append(
- ('addError', [test, err], {'details': details}))
+ if test.id() in self._fixup_expected_failures:
+ self._buffered_calls.append(
+ ('addExpectedFailure', [test, err], {'details': details}))
+ else:
+ self._buffered_calls.append(
+ ('addError', [test, err], {'details': details}))
else:
self._filtered()