diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-10-19 18:54:57 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-10-19 18:54:57 +1100 |
| commit | ecf9af693a3e5f89a8854f53f0a5a1f14fed081d (patch) | |
| tree | 6100e9402346632f3ad38225481419c15e82da2d /python/subunit/test_results.py | |
| parent | 46dd4f37b4828e8ac265374dfef6d9fe3995292b (diff) | |
| download | subunit-git-ecf9af693a3e5f89a8854f53f0a5a1f14fed081d.tar.gz | |
Support the time protocol on ExtendedToOriginalDecorator.
Diffstat (limited to 'python/subunit/test_results.py')
| -rw-r--r-- | python/subunit/test_results.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index f73d747..fad4760 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -362,3 +362,8 @@ class ExtendedToOriginalDecorator(object): return return method(new_tags, gone_tags) + def time(self, a_datetime): + method = getattr(self.decorated, 'time', None) + if method is None: + return + return method(a_datetime) |
