Skip to content
Merged
Changes from all commits
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
3 changes: 2 additions & 1 deletion Lib/test/test_os/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,8 @@ def test_negative_fd_ebadf(self, fd):
func(*args)
self.assertEqual(ctx.exception.errno, errno.EBADF)

if hasattr(os, "execve") and os.execve in os.supports_fd:
if (hasattr(os, "execve") and os.execve in os.supports_fd
and support.has_subprocess_support):
# glibc fails with EINVAL, musl fails with EBADF
with self.assertRaises(OSError) as ctx:
os.execve(fd, [sys.executable, "-c", "pass"], os.environ)
Expand Down
Loading