-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
umasked os.makedirs() sometimes fails on Emscripten #135783
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesOS-emscriptenstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesOS-emscriptenstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
When
os.umaskis used on aos.makedirs()call, the permissions aren't always honoured:Should return
0o775; but returns0o755on some installs.This can be observed as a failure of
test_os.MakedirTests.test_mode. The Emscripten buildbot fails consistently on this; it also fails on my macOS machine. However, @hoodmane has been unable to reproduce it. The test has been skipped as part of #127146 to get a passing buildbot; more investigation is required.CPython versions tested on:
CPython main branch
Operating systems tested on:
Other