diff options
author | Xie Yanbo <xieyanbo@gmail.com> | 2024-08-07 06:39:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 06:39:16 (GMT) |
commit | b6c80e21c78ea86fb12b331f69881a586ed487e0 (patch) | |
tree | f3ccb152fa27be8da9e6fb84217e5c657d541c18 /Lib/test | |
parent | 98dba73010e807e613b9400e8c4b411302498728 (diff) | |
download | cpython-b6c80e21c78ea86fb12b331f69881a586ed487e0.zip cpython-b6c80e21c78ea86fb12b331f69881a586ed487e0.tar.gz cpython-b6c80e21c78ea86fb12b331f69881a586ed487e0.tar.bz2 |
Fix typos in comments and docstring (#122720)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/datetimetester.py | 4 | ||||
-rw-r--r-- | Lib/test/test__interpreters.py | 2 | ||||
-rwxr-xr-x | Lib/test/test_array.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index b756413..d6b7adc 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -3367,8 +3367,8 @@ class TestDateTime(TestDate): '2009-04-19T12:', # Ends with time separator '2009-04-19T12:30:', # Ends with time separator '2009-04-19T12:30:45.', # Ends with time separator - '2009-04-19T12:30:45.123456+', # Ends with timzone separator - '2009-04-19T12:30:45.123456-', # Ends with timzone separator + '2009-04-19T12:30:45.123456+', # Ends with timezone separator + '2009-04-19T12:30:45.123456-', # Ends with timezone separator '2009-04-19T12:30:45.123456-05:00a', # Extra text '2009-04-19T12:30:45.123-05:00a', # Extra text '2009-04-19T12:30:45-05:00a', # Extra text diff --git a/Lib/test/test__interpreters.py b/Lib/test/test__interpreters.py index beeb280..f493a92 100644 --- a/Lib/test/test__interpreters.py +++ b/Lib/test/test__interpreters.py @@ -43,7 +43,7 @@ def _run_output(interp, request): def _wait_for_interp_to_run(interp, timeout=None): # bpo-37224: Running this test file in multiprocesses will fail randomly. # The failure reason is that the thread can't acquire the cpu to - # run subinterpreter eariler than the main thread in multiprocess. + # run subinterpreter earlier than the main thread in multiprocess. if timeout is None: timeout = support.SHORT_TIMEOUT for _ in support.sleeping_retry(timeout, error=False): diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 47cbe60..f621f34 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -1492,7 +1492,7 @@ class FPTest(NumberTest): if a.itemsize==1: self.assertEqual(a, b) else: - # On alphas treating the byte swapped bit patters as + # On alphas treating the byte swapped bit patterns as # floats/doubles results in floating-point exceptions # => compare the 8bit string values instead self.assertNotEqual(a.tobytes(), b.tobytes()) |