Skip to content

Commit 97e7c85

Browse files
Apply batched suggestions from code review
Co-authored-by: Stan Ulbrych <stan@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 5510b0a commit 97e7c85

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎Lib/test/test_shutil.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,6 @@ def onexc(func, path, err, direntry=None, dir_fd=None):
587587
os.stat(os.path.join(TESTFN, path)),
588588
os.stat(name, dir_fd=dir_fd)))
589589

590-
def rmtree():
591-
errors.clear()
592-
shutil.rmtree('top', dir_fd=parent_fd, onexc=onexc,
593-
_onexc_kwargs=True)
594-
return errors
595-
596590
def failing_rmdir(path, *, dir_fd=None):
597591
raise PermissionError(errno.EACCES, 'simulated')
598592
with unittest.mock.patch('os.rmdir', failing_rmdir):

‎Lib/test/test_tempfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ def hook(path, *, dir_fd=None):
19281928
self.assertEqual(os.stat(target_file).st_mode, target_mode)
19291929

19301930
def _make_unopenable_subdir(self):
1931-
# Create the fullowing structure:
1931+
# Create the following structure:
19321932
# work/ - top-level
19331933
# <d>/ - tempdir to clean up (random name)
19341934
# sub/ - an unopenable dir

0 commit comments

Comments
 (0)