Skip to content

Commit 8c1b9f4

Browse files
committed
gh-145335: Skip Emscripten for os.execve test
Emscripten's os.execve always fails with ENOEXEC.
1 parent 6acaf65 commit 8c1b9f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_os/test_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2824,7 +2824,7 @@ def test_negative_fd_ebadf(self, fd):
28242824
func(*args)
28252825
self.assertEqual(ctx.exception.errno, errno.EBADF)
28262826

2827-
if hasattr(os, "execve") and os.execve in os.supports_fd:
2827+
if hasattr(os, "execve") and os.execve in os.supports_fd and not support.is_emscripten:
28282828
# glibc fails with EINVAL, musl fails with EBADF
28292829
with self.assertRaises(OSError) as ctx:
28302830
os.execve(fd, [sys.executable, "-c", "pass"], os.environ)

0 commit comments

Comments
 (0)