Typo in doc and a fix for TestProgram being constructed without an explicit testRunner argument.

This commit is contained in:
Vincent Ladeuil
2012-11-29 12:40:17 +01:00
parent 918274b231
commit c5cf9e9bda
2 changed files with 2 additions and 2 deletions

View File

@@ -432,7 +432,7 @@ example::
def test_keys_equal(self): def test_keys_equal(self):
x = {'a': 1, 'b': 2} x = {'a': 1, 'b': 2}
y = {'a': 2, 'b': 3} y = {'a': 2, 'b': 3}
self.assertThat(a, KeysEqual(b)) self.assertThat(x, KeysEqual(y))
MatchesRegex MatchesRegex

View File

@@ -307,7 +307,7 @@ class TestProgram(object):
and getattr(unittest, 'installHandler', None) is not None): and getattr(unittest, 'installHandler', None) is not None):
unittest.installHandler() unittest.installHandler()
if self.testRunner is None: if self.testRunner is None:
self.testRunner = runner.TextTestRunner self.testRunner = TestToolsTestRunner(sys.stdout)
if isinstance(self.testRunner, classtypes()): if isinstance(self.testRunner, classtypes()):
try: try:
testRunner = self.testRunner(verbosity=self.verbosity, testRunner = self.testRunner(verbosity=self.verbosity,