##// END OF EJS Templates
run-tests: fix test result verbosity...
Boris Feld -
r38639:875e033f default
parent child Browse files
Show More
@@ -2106,8 +2106,9 b' class TextTestRunner(unittest.TextTestRu'
2106 super(TextTestRunner, self).__init__(*args, **kwargs)
2106 super(TextTestRunner, self).__init__(*args, **kwargs)
2107
2107
2108 self._runner = runner
2108 self._runner = runner
2109
2109 self._result = getTestResult()(self._runner.options, self.stream,
2110 self._result = getTestResult()(self._runner.options, self.stream,
2110 self.descriptions, 0)
2111 self.descriptions, self.verbosity)
2111
2112
2112 def listtests(self, test):
2113 def listtests(self, test):
2113 test = sorted(test, key=lambda t: t.name)
2114 test = sorted(test, key=lambda t: t.name)
@@ -2740,7 +2741,9 b' class TestRunner(object):'
2740 showchannels=self.options.showchannels,
2741 showchannels=self.options.showchannels,
2741 tests=tests, loadtest=_reloadtest)
2742 tests=tests, loadtest=_reloadtest)
2742 verbosity = 1
2743 verbosity = 1
2743 if self.options.verbose:
2744 if self.options.list_tests:
2745 verbosity = 0
2746 elif self.options.verbose:
2744 verbosity = 2
2747 verbosity = 2
2745 runner = TextTestRunner(self, verbosity=verbosity)
2748 runner = TextTestRunner(self, verbosity=verbosity)
2746
2749
General Comments 0
You need to be logged in to leave comments. Login now