mirror of
https://github.com/python/cpython.git
synced 2025-12-22 08:29:12 +00:00
gh-127146: Emscripten: Make os.umask() actually work (#136706)
Provide a stub implementation of umask that is enough to get some tests passing. More work is needed upstream in Emscripten to make all umask tests to pass.
This commit is contained in:
parent
8e2f4b4483
commit
12e52cad71
2 changed files with 23 additions and 5 deletions
|
|
@ -1918,11 +1918,9 @@ class MakedirTests(unittest.TestCase):
|
|||
support.is_wasi,
|
||||
"WASI's umask is a stub."
|
||||
)
|
||||
@unittest.skipIf(
|
||||
support.is_emscripten,
|
||||
"TODO: Fails in buildbot; see #135783"
|
||||
)
|
||||
def test_mode(self):
|
||||
# Note: in some cases, the umask might already be 2 in which case this
|
||||
# will pass even if os.umask is actually broken.
|
||||
with os_helper.temp_umask(0o002):
|
||||
base = os_helper.TESTFN
|
||||
parent = os.path.join(base, 'dir1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue