From f1b0ed0b92c8348516f509cac875974bc4346249 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 23 May 2022 18:45:08 +0300 Subject: [PATCH 1/3] Fix typos in comments --- Lib/test/test_asyncio/test_locks.py | 4 ++-- Lib/test/test_asyncio/test_runners.py | 2 +- Lib/test/test_builtin.py | 2 +- Lib/test/test_peg_generator/test_c_parser.py | 2 +- Lib/typing.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index 415cbe570fde98..ff25d9edef518f 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 0c2092147842ca..3773a32925e3df 100644 --- a/Lib/test/test_asyncio/test_runners.py +++ b/Lib/test/test_asyncio/test_runners.py @@ -378,7 +378,7 @@ async def coro(): 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 efa9459a58629d..d5eaf291a5ca28 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 d25bc112cfdc43..1b3fcbb92f8292 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 diff --git a/Lib/typing.py b/Lib/typing.py index 40ab516f7c8ff7..6124aaa9aeaa7e 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1359,7 +1359,7 @@ def __ror__(self, left): @_tp_cache def __getitem__(self, args): - # Parameterizes an already-parameterized object. + # Parametrizes an already-parameterized object. # # For example, we arrive here doing something like: # T1 = TypeVar('T1') From 296335ec5963baf7732cc5fcf0f44d110b4795a1 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 23 May 2022 18:58:42 +0300 Subject: [PATCH 2/3] Parameterizes --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index 6124aaa9aeaa7e..40ab516f7c8ff7 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1359,7 +1359,7 @@ def __ror__(self, left): @_tp_cache def __getitem__(self, args): - # Parametrizes an already-parameterized object. + # Parameterizes an already-parameterized object. # # For example, we arrive here doing something like: # T1 = TypeVar('T1') From 54f307d717ff74e5d62956509b81862f27c4fbd4 Mon Sep 17 00:00:00 2001 From: Akuli Date: Wed, 25 May 2022 17:58:52 +0300 Subject: [PATCH 3/3] delete trailing whitespace to make CI happy --- Lib/test/test_asyncio/test_runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py index 3773a32925e3df..957cfe41eff85d 100644 --- a/Lib/test/test_asyncio/test_runners.py +++ b/Lib/test/test_asyncio/test_runners.py @@ -376,7 +376,7 @@ 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" doesn't have signals enabled assert threading.current_thread() is threading.main_thread()