Typo in doc and a fix for TestProgram being constructed without an explicit testRunner argument.
This commit is contained in:
@@ -432,7 +432,7 @@ example::
|
||||
def test_keys_equal(self):
|
||||
x = {'a': 1, 'b': 2}
|
||||
y = {'a': 2, 'b': 3}
|
||||
self.assertThat(a, KeysEqual(b))
|
||||
self.assertThat(x, KeysEqual(y))
|
||||
|
||||
|
||||
MatchesRegex
|
||||
|
||||
@@ -307,7 +307,7 @@ class TestProgram(object):
|
||||
and getattr(unittest, 'installHandler', None) is not None):
|
||||
unittest.installHandler()
|
||||
if self.testRunner is None:
|
||||
self.testRunner = runner.TextTestRunner
|
||||
self.testRunner = TestToolsTestRunner(sys.stdout)
|
||||
if isinstance(self.testRunner, classtypes()):
|
||||
try:
|
||||
testRunner = self.testRunner(verbosity=self.verbosity,
|
||||
|
||||
Reference in New Issue
Block a user