diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_timeouts.py | 2 | ||||
-rw-r--r-- | Lib/test/test_capi/test_exceptions.py | 2 | ||||
-rw-r--r-- | Lib/test/test_pdb.py | 2 | ||||
-rw-r--r-- | Lib/test/test_statistics.py | 2 | ||||
-rw-r--r-- | Lib/test/test_typing.py | 2 | ||||
-rw-r--r-- | Lib/test/test_unicodedata.py | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_asyncio/test_timeouts.py b/Lib/test/test_asyncio/test_timeouts.py index 1f7f9ee..f5543e1 100644 --- a/Lib/test/test_asyncio/test_timeouts.py +++ b/Lib/test/test_asyncio/test_timeouts.py @@ -220,7 +220,7 @@ class TimeoutTests(unittest.IsolatedAsyncioTestCase): # Pretend the loop is busy for a while. time.sleep(0.1) await asyncio.sleep(1) - # TimeoutError was cought by (2) + # TimeoutError was caught by (2) await asyncio.sleep(10) # This sleep should be interrupted by (1) t1 = loop.time() self.assertTrue(t0 <= t1 <= t0 + 1) diff --git a/Lib/test/test_capi/test_exceptions.py b/Lib/test/test_capi/test_exceptions.py index c475b6d..b22ddd8 100644 --- a/Lib/test/test_capi/test_exceptions.py +++ b/Lib/test/test_capi/test_exceptions.py @@ -104,7 +104,7 @@ class Test_Exceptions(unittest.TestCase): ''') proc = assert_python_ok("-c", code) warnings = proc.err.splitlines() - # Due to the finalization of the interpreter, the source will be ommited + # Due to the finalization of the interpreter, the source will be omitted # because the ``warnings`` module cannot be imported at this time self.assertEqual(warnings, [ b'<string>:7: RuntimeWarning: Testing PyErr_WarnEx', diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 9395e9b..db7d1b1 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1263,7 +1263,7 @@ def test_post_mortem_context_of_the_cause(): def test_post_mortem_from_none(): """Test post mortem traceback debugging of chained exception - In particular that cause from None (which sets __supress_context__ to True) + In particular that cause from None (which sets __suppress_context__ to True) does not show context. diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 89201c6..c69baa4 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -2799,7 +2799,7 @@ class TestCorrelationAndCovariance(unittest.TestCase): @requires_IEEE_754 @unittest.skipIf(HAVE_DOUBLE_ROUNDING, "accuracy not guaranteed on machines with double rounding") - @support.cpython_only # Allow for a weaker sumprod() implmentation + @support.cpython_only # Allow for a weaker sumprod() implementation def test_sqrtprod_helper_function_improved_accuracy(self): # Test a known example where accuracy is improved x, y, target = 0.8035720646477457, 0.7957468097636939, 0.7996498651651661 diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index ef2ad30..6e036b6 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -2500,7 +2500,7 @@ class BaseCallableTests: def test_nested_paramspec(self): # Since Callable has some special treatment, we want to be sure - # that substituion works correctly, see gh-103054 + # that substitution works correctly, see gh-103054 Callable = self.Callable P = ParamSpec('P') P2 = ParamSpec('P2') diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index d3bf4ea..5f572c4 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -114,7 +114,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): def test_lookup_nonexistant(self): # just make sure that lookup can fail - for nonexistant in [ + for nonexistent in [ "LATIN SMLL LETR A", "OPEN HANDS SIGHS", "DREGS", @@ -122,7 +122,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): "MODIFIER LETTER CYRILLIC SMALL QUESTION MARK", "???", ]: - self.assertRaises(KeyError, self.db.lookup, nonexistant) + self.assertRaises(KeyError, self.db.lookup, nonexistent) def test_digit(self): self.assertEqual(self.db.digit('A', None), None) |