diff options
| author | Jonathan Lange <jml@canonical.com> | 2010-10-19 09:56:26 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2010-10-19 09:56:26 +0100 |
| commit | ae0b2d30780dc535adf7f0fd4df76ec48f57001e (patch) | |
| tree | 6012406247714c6d2b30f5edaa57cc934ea37158 /python/subunit | |
| parent | 7738185b46f811836ee61095080feffebe942afd (diff) | |
| parent | f1ec7c8a0879502470596212e9d7efe611095989 (diff) | |
| download | subunit-ae0b2d30780dc535adf7f0fd4df76ec48f57001e.tar.gz | |
Merge mgz's patch for flushing the TestProtocolClient stream.
Diffstat (limited to 'python/subunit')
| -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. |
