Skip to content

Commit c12bec3

Browse files
Revert "Update Lib/test/test_tempfile.py"
This reverts commit 4baeeb1.
1 parent 4baeeb1 commit c12bec3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Lib/test/test_tempfile.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,8 +1901,7 @@ def hook(path, *, dir_fd=None):
19011901
if os.path.islink(dir1):
19021902
os.unlink(dir1)
19031903
os.rename(dir1 + '_moved', dir1)
1904-
if os.path.exists(dir1):
1905-
os.chmod(dir1, 0o700)
1904+
os.chmod(dir1, 0o700)
19061905
d1.cleanup()
19071906

19081907
self.assertTrue(os.path.exists(target_file))

0 commit comments

Comments
 (0)