summaryrefslogtreecommitdiff
path: root/python/subunit/test_results.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/subunit/test_results.py')
-rw-r--r--python/subunit/test_results.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py
index a4ff372..c8b0bfe 100644
--- a/python/subunit/test_results.py
+++ b/python/subunit/test_results.py
@@ -503,8 +503,6 @@ class TestIdPrintingResult(testtools.TestResult):
class TestByTestResult(testtools.TestResult):
"""Call something every time a test completes."""
- # XXX: No tests. Naughty, naughty.
-
# XXX: Arguably belongs in testtools.
def __init__(self, on_test):
@@ -521,10 +519,11 @@ class TestByTestResult(testtools.TestResult):
def startTest(self, test):
super(TestByTestResult, self).startTest(test)
- self._current_test = test
+ self._start_time = self._now()
+ # There's no supported (i.e. tested) behaviour that relies on these
+ # being set, but it makes me more comfortable all the same. -- jml
self._status = None
self._details = None
- self._start_time = self._now()
self._stop_time = None
def stopTest(self, test):