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

Fixes #93124

Automerge-Triggered-By: GH:rhettinger
This commit is contained in:
Akuli 2022-05-25 18:34:14 +03:00 committed by GitHub
parent 1f134e96ba
commit a4974003ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -1271,7 +1271,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
# catch here waiting tasks # catch here waiting tasks
results1.append(True) results1.append(True)
else: else:
# here drained task ouside the barrier # here drained task outside the barrier
if rest_of_tasks == barrier._count: if rest_of_tasks == barrier._count:
# tasks outside the barrier # tasks outside the barrier
await barrier.reset() await barrier.reset()
@ -1377,7 +1377,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
# last task exited from barrier # last task exited from barrier
await barrier.reset() await barrier.reset()
# wit here to reach the `parties` # wait here to reach the `parties`
await barrier.wait() await barrier.wait()
else: else:
try: try:

View File

@ -376,9 +376,9 @@ class RunnerTests(BaseTest):
with asyncio.Runner() as runner: with asyncio.Runner() as runner:
with self.assertRaises(asyncio.CancelledError): with self.assertRaises(asyncio.CancelledError):
runner.run(coro()) runner.run(coro())
def test_signal_install_not_supported_ok(self): 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() assert threading.current_thread() is threading.main_thread()
async def coro(): async def coro():

View File

@ -2188,7 +2188,7 @@ class PtyTests(unittest.TestCase):
# the readline implementation. In some cases, the Python readline # the readline implementation. In some cases, the Python readline
# callback rlhandler() is called by readline with a string without # callback rlhandler() is called by readline with a string without
# non-ASCII characters. Skip tests on non-ASCII characters if the # 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. # the readline module, but the builtins module.
if 'readline' in sys.modules: if 'readline' in sys.modules:
self.skipTest("the readline module is loaded") self.skipTest("the readline module is loaded")

View File

@ -75,7 +75,7 @@ class TestCParser(unittest.TestCase):
@classmethod @classmethod
def setUpClass(cls): 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. # as the current directory and watched for left-overs.
# Reusing that as the base for temporary directories # Reusing that as the base for temporary directories
# ensures everything is cleaned up properly and # ensures everything is cleaned up properly and