diff options
| author | Martin <gzlist@googlemail.com> | 2010-10-04 23:20:43 +0100 |
|---|---|---|
| committer | Martin <gzlist@googlemail.com> | 2010-10-04 23:20:43 +0100 |
| commit | ff0991fae730da6140dd3f7e8716125aae3b9891 (patch) | |
| tree | 6d589206ef38f4584321604a202a1f3320023e2b /python/subunit/__init__.py | |
| parent | f771bc3e03bfa88185f142967bdd0e18d5152321 (diff) | |
| download | subunit-git-ff0991fae730da6140dd3f7e8716125aae3b9891.tar.gz | |
Flush the stream at the start and end of each test in the python client
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index b6f0108..b2c7a29 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -646,7 +646,13 @@ class TestProtocolClient(testresult.TestResult): def startTest(self, test): """Mark a test as starting its test run.""" + super(TestProtocolClient, self).startTest(test) self._stream.write("test: %s\n" % test.id()) + self._stream.flush() + + def stopTest(self, test): + super(TestProtocolClient, self).stopTest(test) + self._stream.flush() def progress(self, offset, whence): """Provide indication about the progress/length of the test run. |
