mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Fix spelling and typos.
Thanks to Vajrasky Kok for discovering some of them.
This commit is contained in:
parent
8abac348a9
commit
b0b0e628ee
13 changed files with 18 additions and 19 deletions
|
@ -259,7 +259,7 @@ class TestLoop(base_events.BaseEventLoop):
|
|||
when = yield ...
|
||||
... = yield time_advance
|
||||
|
||||
Value retuned by yield is absolute time of next scheduled handler.
|
||||
Value returned by yield is absolute time of next scheduled handler.
|
||||
Value passed to yield is time advance to move loop's time forward.
|
||||
"""
|
||||
|
||||
|
@ -369,7 +369,7 @@ class MockPattern(str):
|
|||
"""A regex based str with a fuzzy __eq__.
|
||||
|
||||
Use this helper with 'mock.assert_called_with', or anywhere
|
||||
where a regexp comparison between strings is needed.
|
||||
where a regex comparison between strings is needed.
|
||||
|
||||
For instance:
|
||||
mock_call.assert_called_with(MockPattern('spam.*ham'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue