summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-19 03:27:48 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-02-19 03:27:48 (GMT)
commitb0b0e628ee453126efb16805588ef60e2601fd08 (patch)
tree1048819ba08c5f0f1db2b96abdcc0e38c16d24db /Lib/test/test_asyncio
parent8abac348a9a6d8f64527f913609789f50251ba58 (diff)
downloadcpython-b0b0e628ee453126efb16805588ef60e2601fd08.zip
cpython-b0b0e628ee453126efb16805588ef60e2601fd08.tar.gz
cpython-b0b0e628ee453126efb16805588ef60e2601fd08.tar.bz2
asyncio: Fix spelling and typos.
Thanks to Vajrasky Kok for discovering some of them.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py2
-rw-r--r--Lib/test/test_asyncio/test_events.py1
-rw-r--r--Lib/test/test_asyncio/test_futures.py2
-rw-r--r--Lib/test/test_asyncio/test_streams.py2
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py6
5 files changed, 6 insertions, 7 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index f664ccc..2eee3be 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -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)
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 15cc520..a0a4d02 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -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()
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py
index 2e4dbd4..f2b81dd 100644
--- a/Lib/test/test_asyncio/test_futures.py
+++ b/Lib/test/test_asyncio/test_futures.py
@@ -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):
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
index 31e26a6..ca792f2 100644
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -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)
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 7b5196c..c0f205e 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -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)