[PATCH 16/55] Set default testRunner rather than requiring the user pass it in.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:03:48 MST 2015


Change-Id: I8b5a5925030049975a83b090e5c7b76d5245c07d
Signed-Off-By: Jelmer Vernooij <jelmer at samba.org>
---
 python/samba/subunit/run.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/samba/subunit/run.py b/python/samba/subunit/run.py
index dbe6b24..0eb2913 100755
--- a/python/samba/subunit/run.py
+++ b/python/samba/subunit/run.py
@@ -537,6 +537,8 @@ class TestProgram(object):
             argv = sys.argv
         if stdout is None:
             stdout = sys.stdout
+        if testRunner is None:
+            testRunner = SubunitTestRunner()
 
         self.exit = exit
         self.failfast = failfast
@@ -729,5 +731,4 @@ class TestProgram(object):
 
 
 if __name__ == '__main__':
-    TestProgram(module=None, argv=sys.argv, testRunner=SubunitTestRunner(),
-        stdout=sys.stdout)
+    TestProgram(module=None, argv=sys.argv, stdout=sys.stdout)
-- 
2.1.4



More information about the samba-technical mailing list