subunithelper: Fix format time.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 2 Oct 2010 20:31:31 +0000 (22:31 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 2 Oct 2010 20:31:31 +0000 (22:31 +0200)
selftest/subunithelper.py

index e60c8d340c1739e7c4b5c0a172a0de449e0ad075..872989e088e6003b5702d2de188968e8983f6d1f 100644 (file)
@@ -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):