diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-10-24 19:24:09 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-10-24 19:24:09 +1100 |
| commit | ab0aada6011a4d0db688de56cffef931d5585629 (patch) | |
| tree | 44a15a4b47f92a139bc9b9ea6bbced81149e7320 /python/subunit/__init__.py | |
| parent | 1397750c1112952370adbd70f5e19745de8691be (diff) | |
| download | subunit-git-ab0aada6011a4d0db688de56cffef931d5585629.tar.gz | |
change error reports to use the extended details interface.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 4cb273b..a981a82 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -266,7 +266,8 @@ class _InTest(_ParserState): self.parser.stdOutLineReceived(line) def _error(self): - self.parser.client.addError(self.parser._current_test, RemoteError("")) + self.parser.client.addError(self.parser._current_test, + details={}) def addError(self, offset, line): """An 'error:' directive has been read.""" @@ -373,7 +374,7 @@ class _ReadingErrorDetails(_ReadingDetails): def _report_outcome(self): self.parser.client.addError(self.parser._current_test, - RemoteError(self.details_parser.get_message())) + details=self.details_parser.get_details()) def _outcome_label(self): return "error" |
