mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -277,7 +277,7 @@ class BaseEventLoopTests(unittest.TestCase):
|
|||
asyncio.SubprocessProtocol, *args, bufsize=4096)
|
||||
|
||||
def test_subprocess_shell_invalid_args(self):
|
||||
# exepected a string, not an int or a list
|
||||
# expected a string, not an int or a list
|
||||
self.assertRaises(TypeError,
|
||||
self.loop.run_until_complete, self.loop.subprocess_shell,
|
||||
asyncio.SubprocessProtocol, 123)
|
||||
|
|
|
@ -503,7 +503,6 @@ class EventLoopTestsMixin:
|
|||
tr, pr = self.loop.run_until_complete(connection_fut)
|
||||
self.assertIsInstance(tr, asyncio.Transport)
|
||||
self.assertIsInstance(pr, asyncio.Protocol)
|
||||
self.assertIsNotNone(tr.get_extra_info('sockname'))
|
||||
self.loop.run_until_complete(pr.done)
|
||||
self.assertGreater(pr.nbytes, 0)
|
||||
tr.close()
|
||||
|
|
|
@ -38,7 +38,7 @@ class FutureTests(unittest.TestCase):
|
|||
asyncio.set_event_loop(None)
|
||||
|
||||
def test_constructor_positional(self):
|
||||
# Make sure Future does't accept a positional argument
|
||||
# Make sure Future doesn't accept a positional argument
|
||||
self.assertRaises(TypeError, asyncio.Future, 42)
|
||||
|
||||
def test_cancel(self):
|
||||
|
|
|
@ -239,7 +239,7 @@ class StreamReaderTests(unittest.TestCase):
|
|||
# No b'\n' at the end. The 'limit' is set to 3. So before
|
||||
# waiting for the new data in buffer, 'readline' will consume
|
||||
# the entire buffer, and since the length of the consumed data
|
||||
# is more than 3, it will raise a ValudError. The buffer is
|
||||
# is more than 3, it will raise a ValueError. The buffer is
|
||||
# expected to be empty now.
|
||||
self.assertEqual(b'', stream._buffer)
|
||||
|
||||
|
|
|
@ -965,7 +965,7 @@ class ChildWatcherTestsMixin:
|
|||
self.assertFalse(m.WEXITSTATUS.called)
|
||||
self.assertFalse(m.WTERMSIG.called)
|
||||
|
||||
# childen are running
|
||||
# children are running
|
||||
self.watcher._sig_chld()
|
||||
|
||||
self.assertFalse(callback1.called)
|
||||
|
@ -1069,7 +1069,7 @@ class ChildWatcherTestsMixin:
|
|||
self.assertFalse(m.WEXITSTATUS.called)
|
||||
self.assertFalse(m.WTERMSIG.called)
|
||||
|
||||
# childen are running
|
||||
# children are running
|
||||
self.watcher._sig_chld()
|
||||
|
||||
self.assertFalse(callback1.called)
|
||||
|
@ -1425,7 +1425,7 @@ class ChildWatcherTestsMixin:
|
|||
self.add_zombie(61, 11)
|
||||
self.add_zombie(62, -5)
|
||||
|
||||
# SIGCHLD was not catched
|
||||
# SIGCHLD was not caught
|
||||
self.assertFalse(callback1.called)
|
||||
self.assertFalse(callback2.called)
|
||||
self.assertFalse(callback3.called)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue