diff options
author | Min ho Kim <minho42@gmail.com> | 2019-07-30 22:16:13 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-30 22:16:13 (GMT) |
commit | c4cacc8c5eab50db8da3140353596f38a01115ca (patch) | |
tree | 9198db7e2525d0f113823faee4b6d4ac7136a633 /Lib/unittest | |
parent | 0acb646b8e405864224bfd6d7d5089980dea63ac (diff) | |
download | cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.zip cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.gz cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.bz2 |
Fix typos in comments, docs and test names (#15018)
* Fix typos in comments, docs and test names
* Update test_pyparse.py
account for change in string length
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: Dealloccte -> Deallocate
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Update posixmodule checksum.
* Reverse idlelib changes.
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/result.py | 2 | ||||
-rw-r--r-- | Lib/unittest/test/testmock/testmock.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py index c7e3206..111317b 100644 --- a/Lib/unittest/result.py +++ b/Lib/unittest/result.py @@ -161,7 +161,7 @@ class TestResult(object): """Tells whether or not this result was a success.""" # The hasattr check is for test_result's OldResult test. That # way this method works on objects that lack the attribute. - # (where would such result intances come from? old stored pickles?) + # (where would such result instances come from? old stored pickles?) return ((len(self.failures) == len(self.errors) == 0) and (not hasattr(self, 'unexpectedSuccesses') or len(self.unexpectedSuccesses) == 0)) diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py index 090da45..18efd31 100644 --- a/Lib/unittest/test/testmock/testmock.py +++ b/Lib/unittest/test/testmock/testmock.py @@ -262,7 +262,7 @@ class MockTest(unittest.TestCase): ret_val = mock(sentinel.Arg) self.assertTrue(mock.called, "called not set") - self.assertEqual(mock.call_count, 1, "call_count incoreect") + self.assertEqual(mock.call_count, 1, "call_count incorrect") self.assertEqual(mock.call_args, ((sentinel.Arg,), {}), "call_args not set") self.assertEqual(mock.call_args.args, (sentinel.Arg,), |