pypy/module/_posixsubprocess/test/apptest_subprocess.py::test_pass_fds_make_inheritable
def test_pass_fds_make_inheritable():
fd1, fd2 = posix.pipe()
assert posix.get_inheritable(fd1) is False
assert posix.get_inheritable(fd2) is False
> subprocess.check_call(['/usr/bin/env', 'python', '-c',
module/_posixsubprocess/test/apptest_subprocess.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = W_TupleObject(W_ListObject(<pypy.objspace.std.listobject.AsciiListStrategy obj...00158837d70>, ['/usr/bin/env', 'python', '-c', 'import os;os.write(27,b"K")']))
kwargs = W_DictObject(<pypy.objspace.std.kwargsdict.KwargsDictStrategy object at 0x0000000131402e58>)
retcode = W_IntObject(-10)
cmd = W_ListObject(<pypy.objspace.std.listobject.AsciiListStrategy object at 0x0000000158837d70>, ['/usr/bin/env', 'python', '-c', 'import os;os.write(27,b"K")'])
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E (application-level) CalledProcessError: Command '['/usr/bin/env', 'python', '-c', 'import os;os.write(27,b"K")']' died with <Signals.SIGBUS: 10>.
../lib-python/3/subprocess.py:413: CalledProcessError
builder: own-macos-arm64 build #1346+
test: pypy/module/_posixsubprocess/test/apptest_subprocess.py::test_pass_fds_make_inheritable