Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-127146: Emscripten: Set umask to zero in test_apropos_empty_doc#136740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
freakboy3742 merged 3 commits intopython:mainfromhoodmane:emscripten-set-umask-zero
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
More specific fix
  • Loading branch information
@hoodmane
hoodmane committedJul 17, 2025
commit643e8892c0549593f1078b5a46b8bf13e93f275d
5 changes: 5 additions & 0 deletionsLib/test/test_pydoc/test_pydoc.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1303,6 +1303,11 @@ def test_apropos_with_unreadable_dir(self):
@os_helper.skip_unless_working_chmod
def test_apropos_empty_doc(self):
pkgdir = os.path.join(TESTFN, 'walkpkg')
if support.is_emscripten:
# Emscripten's readdir implementation is buggy on directories
# with read permission but no execute permission.
old_umask = os.umask(0)
self.addCleanup(os.umask, old_umask)
os.mkdir(pkgdir)
self.addCleanup(rmtree, pkgdir)
init_path = os.path.join(pkgdir, '__init__.py')
Expand Down
4 changes: 0 additions & 4 deletionsTools/wasm/emscripten/__main__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -263,10 +263,6 @@ def configure_emscripten_python(context, working_dir):
REALPATH=abs_path
fi

# Set umask to 0. The buildbot seems to run sometimes with a umask
# of 0o077 which causes one test to fail.
umask 0

# We compute our own path, not following symlinks and pass it in so that
# node_entry.mjs can set sys.executable correctly.
# Intentionally allow word splitting on NODEFLAGS.
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp