]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix Several Typos in Readme & Tests (#121559)
authorMichael <65680649+michaelg100@users.noreply.github.com>
Wed, 17 Jul 2024 07:24:35 +0000 (03:24 -0400)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2024 07:24:35 +0000 (00:24 -0700)
Lib/test/test_itertools.py
Lib/test/test_shutil.py

index 5fd6ecf37427f7d0e03ad34fea30834cad6dbd68..052dcace4efdc75534580d6519dfb9234dcfb45f 100644 (file)
@@ -1278,7 +1278,7 @@ class TestBasicOps(unittest.TestCase):
         t3 = tnew(t1)
         self.assertTrue(list(t1) == list(t2) == list(t3) == list('abc'))
 
-        # test that tee objects are weak referencable
+        # test that tee objects are weak referenceable
         a, b = tee(range(10))
         p = weakref.proxy(a)
         self.assertEqual(getattr(p, '__class__'), type(b))
index 02ef172613bf943e6fb19053a1ae6531690076cf..c458c5df32572b450455489ab98fe326f6bea17e 100644 (file)
@@ -905,10 +905,10 @@ class TestCopyTree(BaseTest, unittest.TestCase):
         os.mkdir(os.path.join(src_dir, 'test_dir', 'subdir'))
         write_file((src_dir, 'test_dir', 'subdir', 'test.txt'), '456')
 
-        invokations = []
+        invocations = []
 
         def _ignore(src, names):
-            invokations.append(src)
+            invocations.append(src)
             self.assertIsInstance(src, str)
             self.assertIsInstance(names, list)
             self.assertEqual(len(names), len(set(names)))
@@ -933,7 +933,7 @@ class TestCopyTree(BaseTest, unittest.TestCase):
         self.assertTrue(exists(join(dst_dir, 'test_dir', 'subdir',
                                     'test.txt')))
 
-        self.assertEqual(len(invokations), 9)
+        self.assertEqual(len(invocations), 9)
 
     def test_copytree_retains_permissions(self):
         tmp_dir = self.mkdtemp()