Change in vdsm[master]: testlib: Remove unneeded methods

nsoffer at redhat.com nsoffer at redhat.com
Sat Jul 11 22:35:48 UTC 2015


Nir Soffer has uploaded a new change for review.

Change subject: testlib: Remove unneeded methods
......................................................................

testlib: Remove unneeded methods

VdsmTestRunner was implementing __init__() and run() for no reason.
Maybe we used to do something in these methods in the past, but now they
do nothing by invoke the superclass methods, so should remove them.

Change-Id: I265c1553fbea3149e268b01e419ced974edb08b3
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M tests/testlib.py
1 file changed, 0 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/30/43430/1

diff --git a/tests/testlib.py b/tests/testlib.py
index 763edcb..04485e9 100644
--- a/tests/testlib.py
+++ b/tests/testlib.py
@@ -336,18 +336,12 @@
 
 
 class VdsmTestRunner(core.TextTestRunner):
-    def __init__(self, *args, **kwargs):
-        core.TextTestRunner.__init__(self, *args, **kwargs)
 
     def _makeResult(self):
         return VdsmTestResult(self.stream,
                               self.descriptions,
                               self.verbosity,
                               self.config)
-
-    def run(self, test):
-        result_ = core.TextTestRunner.run(self, test)
-        return result_
 
 
 def run():


-- 
To view, visit https://gerrit.ovirt.org/43430
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I265c1553fbea3149e268b01e419ced974edb08b3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>


More information about the vdsm-patches mailing list