Skip to content

Commit dc9cc91

Browse files
authored
Fix Several Typos in Readme & Tests (#121559)
1 parent 72dccd6 commit dc9cc91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/test_itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def test_tee(self):
12781278
t3 = tnew(t1)
12791279
self.assertTrue(list(t1) == list(t2) == list(t3) == list('abc'))
12801280

1281-
# test that tee objects are weak referencable
1281+
# test that tee objects are weak referenceable
12821282
a, b = tee(range(10))
12831283
p = weakref.proxy(a)
12841284
self.assertEqual(getattr(p, '__class__'), type(b))

Lib/test/test_shutil.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,10 @@ def test_copytree_arg_types_of_ignore(self):
905905
os.mkdir(os.path.join(src_dir, 'test_dir', 'subdir'))
906906
write_file((src_dir, 'test_dir', 'subdir', 'test.txt'), '456')
907907

908-
invokations = []
908+
invocations = []
909909

910910
def _ignore(src, names):
911-
invokations.append(src)
911+
invocations.append(src)
912912
self.assertIsInstance(src, str)
913913
self.assertIsInstance(names, list)
914914
self.assertEqual(len(names), len(set(names)))
@@ -933,7 +933,7 @@ def _ignore(src, names):
933933
self.assertTrue(exists(join(dst_dir, 'test_dir', 'subdir',
934934
'test.txt')))
935935

936-
self.assertEqual(len(invokations), 9)
936+
self.assertEqual(len(invocations), 9)
937937

938938
def test_copytree_retains_permissions(self):
939939
tmp_dir = self.mkdtemp()

0 commit comments

Comments
 (0)