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):
|
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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user