diff --git a/LICENSE b/LICENSE index 42421b0..d59dc7c 100644 --- a/LICENSE +++ b/LICENSE @@ -16,6 +16,7 @@ The testtools authors are: * Christian Kampka * Gavin Panella * Martin Pool + * Vincent Ladeuil and are collectively referred to as "testtools developers". diff --git a/NEWS b/NEWS index a4f1329..6a1fec1 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,10 @@ Improvements * ``AnyMatch`` added, a new matcher that matches when any item in a collection matches the given matcher. (Jonathan Lange) +* Spelling corrections to documentation. (Vincent Ladeuil) + +* ``TestProgram`` now has a sane default for its ``testRunner`` argument. + (Vincent Ladeuil) 0.9.22 ~~~~~~ diff --git a/doc/for-test-authors.rst b/doc/for-test-authors.rst index b83221b..c9e6c6a 100644 --- a/doc/for-test-authors.rst +++ b/doc/for-test-authors.rst @@ -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 diff --git a/testtools/run.py b/testtools/run.py index 12d669c..86f053b 100755 --- a/testtools/run.py +++ b/testtools/run.py @@ -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,