summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-02 22:31:31 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-02 22:31:31 +0200
commit14efa955934b1731df9bfa6cd089ae6e78a4f1d1 (patch)
tree462f613511080bc2fcf58f6c00c6fdad7d116731
parent20c65121a7debe0ec2b7a316b6d36f97edf0264b (diff)
downloadsamba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.tar.gz
samba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.tar.bz2
samba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.zip
subunithelper: Fix format time.
-rw-r--r--selftest/subunithelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index e60c8d340c..872989e088 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -376,7 +376,7 @@ class PlainFormatter(TestsuiteEnabledTestResult):
self.totalsuites = totaltests
self.last_time = None
- @classmethod
+ @staticmethod
def _format_time(delta):
minutes, seconds = divmod(delta.seconds, 60)
hours, minutes = divmod(minutes, 60)
@@ -554,3 +554,4 @@ class PlainFormatter(TestsuiteEnabledTestResult):
self.totalsuites-=1
+class TestProtocolServer(subunit.TestProtocolServer):