Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored May 7, 2024
1 parent 3f5e5f5 commit f7dd957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,9 +1382,9 @@ def test_exist_ok_existing_regular_file(self):

@unittest.skipUnless(os.name == 'nt', "requires Windows")
def test_win32_mkdir_700(self):
base = os_helper.TESTFN
path1 = os.path.join(os_helper.TESTFN, 'dir1')
path2 = os.path.join(os_helper.TESTFN, 'dir2')
base = support.TESTFN
path1 = os.path.join(support.TESTFN, 'dir1')
path2 = os.path.join(support.TESTFN, 'dir2')
# mode=0o700 is special-cased to override ACLs on Windows
# There's no way to know exactly how the ACLs will look, so we'll
# check that they are different from a regularly created directory.
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_tempfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def test_mode_win32(self):
acl = None
# First line of result includes our directory
if line.startswith(dir):
acl = line.removeprefix(dir).strip()
acl = line[len(dir):].strip()
elif line and line[:1].isspace():
acl = line.strip()
if acl:
Expand Down

0 comments on commit f7dd957

Please sign in to comment.