]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93124: Fix typos in comments (GH-93125)
authorAkuli <akuviljanen17@gmail.com>
Wed, 25 May 2022 15:34:14 +0000 (18:34 +0300)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 15:34:14 +0000 (08:34 -0700)
Fixes #93124

Automerge-Triggered-By: GH:rhettinger
Lib/test/test_asyncio/test_locks.py
Lib/test/test_asyncio/test_runners.py
Lib/test/test_builtin.py
Lib/test/test_peg_generator/test_c_parser.py

index 415cbe570fde98d8f1e7eca4add959ebb23e032e..ff25d9edef518f02a8aed20add2ee9be5176d043 100644 (file)
@@ -1271,7 +1271,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
                 # 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 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
                 # 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:
index 0c2092147842ca1aba56c39da81382dee0b3cfec..957cfe41eff85d8266dbfc69fb707a301ec58c64 100644 (file)
@@ -376,9 +376,9 @@ class RunnerTests(BaseTest):
         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():
index efa9459a58629d7fe8c7889900edd33f8b63679c..d5eaf291a5ca2855bb4e715c9fa30202d09b1ac4 100644 (file)
@@ -2188,7 +2188,7 @@ class PtyTests(unittest.TestCase):
         # 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")
index d25bc112cfdc4313ce997f6e599ffaa4eeeb35f3..1b3fcbb92f829231232d5f9d1bc3a6ede3c7d391 100644 (file)
@@ -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