[Python-checkins] gh-93124: Fix typos in comments (GH-93125)

miss-islington webhook-mailer at python.org
Wed May 25 11:34:33 EDT 2022


https://github.com/python/cpython/commit/a4974003ecdb0aba2385ca6f2af91aa989696cab
commit: a4974003ecdb0aba2385ca6f2af91aa989696cab
branch: main
author: Akuli <akuviljanen17 at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-25T08:34:14-07:00
summary:

gh-93124: Fix typos in comments (GH-93125)



Fixes #93124

Automerge-Triggered-By: GH:rhettinger

files:
M Lib/test/test_asyncio/test_locks.py
M Lib/test/test_asyncio/test_runners.py
M Lib/test/test_builtin.py
M Lib/test/test_peg_generator/test_c_parser.py

diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py
index 415cbe570fde9..ff25d9edef518 100644
--- a/Lib/test/test_asyncio/test_locks.py
+++ b/Lib/test/test_asyncio/test_locks.py
@@ -1271,7 +1271,7 @@ async def coro():
                 # catch here waiting tasks
                 results1.append(True)
             else:
-                # here drained task ouside the barrier
+                # here drained task outside the barrier
                 if rest_of_tasks == barrier._count:
                     # tasks outside the barrier
                     await barrier.reset()
@@ -1377,7 +1377,7 @@ async def coro():
                 # last task exited from barrier
                 await barrier.reset()
 
-                # wit here to reach the `parties`
+                # wait here to reach the `parties`
                 await barrier.wait()
             else:
                 try:
diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py
index 0c2092147842c..957cfe41eff85 100644
--- a/Lib/test/test_asyncio/test_runners.py
+++ b/Lib/test/test_asyncio/test_runners.py
@@ -376,9 +376,9 @@ async def coro():
         with asyncio.Runner() as runner:
             with self.assertRaises(asyncio.CancelledError):
                 runner.run(coro())
-    
+
     def test_signal_install_not_supported_ok(self):
-        # signal.signal() can throw if the "main thread" doensn't have signals enabled
+        # signal.signal() can throw if the "main thread" doesn't have signals enabled
         assert threading.current_thread() is threading.main_thread()
 
         async def coro():
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index efa9459a58629..d5eaf291a5ca2 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -2188,7 +2188,7 @@ def skip_if_readline(self):
         # the readline implementation. In some cases, the Python readline
         # callback rlhandler() is called by readline with a string without
         # non-ASCII characters. Skip tests on non-ASCII characters if the
-        # readline module is loaded, since test_builtin is not intented to test
+        # readline module is loaded, since test_builtin is not intended to test
         # the readline module, but the builtins module.
         if 'readline' in sys.modules:
             self.skipTest("the readline module is loaded")
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py
index d25bc112cfdc4..1b3fcbb92f829 100644
--- a/Lib/test/test_peg_generator/test_c_parser.py
+++ b/Lib/test/test_peg_generator/test_c_parser.py
@@ -75,7 +75,7 @@ class TestCParser(unittest.TestCase):
 
     @classmethod
     def setUpClass(cls):
-        # When running under regtest, a seperate tempdir is used
+        # When running under regtest, a separate tempdir is used
         # as the current directory and watched for left-overs.
         # Reusing that as the base for temporary directories
         # ensures everything is cleaned up properly and



More information about the Python-checkins mailing list