mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
0acb646b8e
commit
c4cacc8c5e
63 changed files with 73 additions and 73 deletions
|
@ -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))
|
||||
|
|
|
@ -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,),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue