summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-19 16:28:55 (GMT)
committerGitHub <noreply@github.com>2022-06-19 16:28:55 (GMT)
commit2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8 (patch)
treef3c5b2459a940b3b67e0059b7a2ed936cb6f5cf0 /Lib/test/test_pydoc.py
parent476d30250811e185615dfb971c6a810cac2093bd (diff)
downloadcpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.zip
cpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.tar.gz
cpython-2702e408fd0e0dd7aec396b4cf8c7ce9caae81d8.tar.bz2
gh-84461: Fix Emscripten umask and permission issues (GH-94002)
- Emscripten's default umask is too strict, see https://github.com/emscripten-core/emscripten/issues/17269 - getuid/getgid and geteuid/getegid are stubs that always return 0 (root). Disable effective uid/gid syscalls and fix tests that use chmod() current user. - Cannot drop X bit from directory.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index b705b7a..89faf0d 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -934,6 +934,7 @@ class PydocImportTest(PydocBaseTest):
self.assertEqual(err.getvalue(), '')
@os_helper.skip_unless_working_chmod
+ @unittest.skipIf(is_emscripten, "cannot remove x bit")
def test_apropos_empty_doc(self):
pkgdir = os.path.join(TESTFN, 'walkpkg')
os.mkdir(pkgdir)