pypy/module/_posixsubprocess/test/apptest_subprocess.py::test_umask
def test_umask():
import tempfile, shutil
tmpdir = None
try:
tmpdir = tempfile.mkdtemp()
name = os.path.join(tmpdir, "beans")
# We set an unusual umask in the child so as a unique mode
# for us to test the child's touched file for.
> subprocess.check_call(
module/_posixsubprocess/test/apptest_subprocess.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = W_TupleObject(W_ListObject(<pypy.objspace.std.listobject.AsciiListStrategy obj...', '-c', "open('/tmp/buildbot-arm64/pytest/tmpogtu41gb/beans', 'w').close()"]))
kwargs = W_DictObject(<pypy.objspace.std.kwargsdict.KwargsDictStrategy object at 0x0000000161b2ec28>)
retcode = W_IntObject(-10)
cmd = W_ListObject(<pypy.objspace.std.listobject.AsciiListStrategy object at 0x00000...n', '-c', "open('/tmp/buildbot-arm64/pytest/tmpogtu41gb/beans', 'w').close()"])
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 '['python', '-c', "open('/tmp/buildbot-arm64/pytest/tmpogtu41gb/beans', 'w').close()"]' died with <Signals.SIGBUS: 10>.
../lib-python/3/subprocess.py:413: CalledProcessError
builder: own-macos-arm64 build #1203
test: pypy/module/_posixsubprocess/test/apptest_subprocess/py/test_umask