https://github.com/python/cpython/commit/dc9cc91f76fbbaa09a3bb40d0cbb6f9a2381e269
commit: dc9cc91f76fbbaa09a3bb40d0cbb6f9a2381e269
branch: main
author: Michael <[email protected]>
committer: rhettinger <[email protected]>
date: 2024-07-17T00:24:35-07:00
summary:

Fix Several Typos in Readme & Tests (#121559)

files:
M Lib/test/test_itertools.py
M Lib/test/test_shutil.py

diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 5fd6ecf37427f7..052dcace4efdc7 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -1278,7 +1278,7 @@ def test_tee(self):
         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))
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 02ef172613bf94..c458c5df32572b 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -905,10 +905,10 @@ def test_copytree_arg_types_of_ignore(self):
         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 @@ def _ignore(src, names):
         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()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to