Fix Several Typos in Readme & Tests (#121559)

This commit is contained in:
Michael 2024-07-17 03:24:35 -04:00 committed by GitHub
parent 72dccd6073
commit dc9cc91f76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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()