diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-10-19 18:48:32 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-10-19 18:48:32 +1100 |
| commit | 4e7bd221e171a96e44231218025157f4886a9cc5 (patch) | |
| tree | d7752030971077d36077f571f617989521faeb4b /python/subunit/test_results.py | |
| parent | aff764783084ed070f4d7967f85620a9f1d93c61 (diff) | |
| download | subunit-git-4e7bd221e171a96e44231218025157f4886a9cc5.tar.gz | |
Support progress on the ExtendedToOriginal decorator.
Diffstat (limited to 'python/subunit/test_results.py')
| -rw-r--r-- | python/subunit/test_results.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index 66bb403..49fc731 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -329,6 +329,12 @@ class ExtendedToOriginalDecorator(object): lines.append('------------\n') return ''.join(lines) + def progress(self, offset, whence): + method = getattr(self.decorated, 'progress', None) + if method is None: + return + return method(offset, whence) + def startTest(self, test): return self.decorated.startTest(test) |
