diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-02 22:31:31 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-02 22:31:31 +0200 |
commit | 14efa955934b1731df9bfa6cd089ae6e78a4f1d1 (patch) | |
tree | 462f613511080bc2fcf58f6c00c6fdad7d116731 | |
parent | 20c65121a7debe0ec2b7a316b6d36f97edf0264b (diff) | |
download | samba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.tar.gz samba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.tar.xz samba-14efa955934b1731df9bfa6cd089ae6e78a4f1d1.zip |
subunithelper: Fix format time.
-rw-r--r-- | selftest/subunithelper.py | 3 |
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): |