Skip to content

Commit

Permalink
Address review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Aug 13, 2024
1 parent 3b3d975 commit f95c848
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,9 @@ def test_absolute_posix(self):
)
@needs_posix
def test_open_mode(self):
old_mask = os.umask(2)
# Unmask all permissions except world-write, which may
# not be supported on some filesystems (see GH-85633.)
old_mask = os.umask(0o002)
self.addCleanup(os.umask, old_mask)
p = self.cls(self.base)
with (p / 'new_file').open('wb'):
Expand Down Expand Up @@ -1634,7 +1636,9 @@ def test_resolve_root(self):
)
@needs_posix
def test_touch_mode(self):
old_mask = os.umask(2)
# Unmask all permissions except world-write, which may
# not be supported on some filesystems (see GH-85633.)
old_mask = os.umask(0o002)
self.addCleanup(os.umask, old_mask)
p = self.cls(self.base)
(p / 'new_file').touch()
Expand Down

0 comments on commit f95c848

Please sign in to comment.