pypy-venv/bin/pypy3 -m pytest ../build/extra_tests --junitxml=extra.log --durations=20 -raw -n 0
in dir /build_dir/pypy-c-jit-linux-x86-64/venv (timeout 1200 secs)
watching logfiles {'pytestLog': 'extra.log'}
argv: ['pypy-venv/bin/pypy3', '-m', 'pytest', '../build/extra_tests', '--junitxml=extra.log', '--durations=20', '-raw', '-n', '0']
environment:
AUDITWHEEL_ARCH=x86_64
AUDITWHEEL_PLAT=manylinux2014_x86_64
AUDITWHEEL_POLICY=manylinux2014
DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-10/root
HOME=/home/buildslave
HOSTNAME=255659ffae49
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/usr/local/lib64
LOGNAME=buildslave
PATH=/python27_virt/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig
PWD=/build_dir/pypy-c-jit-linux-x86-64/venv
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
PYPY_USESSION_DIR=/tmp/pytest
SHELL=/bin/bash
SHLVL=2
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
USER=buildslave
USE_CURL=1
_=/python27_virt/bin/buildslave
using PTY: False
============================= test session starts ==============================
platform linux -- Python 3.12.13[pypy-7.3.24-alpha], pytest-6.2.5, py-1.11.0, pluggy-1.6.0
rootdir: /build_dir/pypy-c-jit-linux-x86-64/build/extra_tests, configfile: pytest.ini
plugins: xdist-3.5.0, hypothesis-6.36.2
collected 3200 items / 4 skipped / 3196 selected
../build/extra_tests/test__posixshmem.py . [ 0%]
../build/extra_tests/test_asyncio.py ... [ 0%]
../build/extra_tests/test_binop_overriding.py .... [ 0%]
../build/extra_tests/test_bufferedreader.py ..... [ 0%]
../build/extra_tests/test_bytes.py .......... [ 0%]
../build/extra_tests/test_capi.py F [ 0%]
../build/extra_tests/test_code.py . [ 0%]
../build/extra_tests/test_collections.py .. [ 0%]
../build/extra_tests/test_complexobject.py . [ 0%]
../build/extra_tests/test_contextvars.py . [ 0%]
../build/extra_tests/test_datetime.py ............................F.FFFF [ 1%]
. [ 2%]
../build/extra_tests/test_dbm.py ........ [ 2%]
../build/extra_tests/test_decimal.py ........... [ 2%]
../build/extra_tests/test_dis.py s [ 2%]
../build/extra_tests/test_functools.py FF [ 2%]
../build/extra_tests/test_gc.py ... [ 2%]
../build/extra_tests/test_gdbm.py ... [ 2%]
../build/extra_tests/test_generic_alias.py ............................. [ 3%]
............. [ 4%]
../build/extra_tests/test_greenlet_contextvars.py .......... [ 4%]
../build/extra_tests/test_greenlet_thread.py .....ss [ 4%]
../build/extra_tests/test_greenlet_tracing.py .. [ 4%]
../build/extra_tests/test_grp.py ... [ 4%]
../build/extra_tests/test_hashlib.py ... [ 4%]
../build/extra_tests/test_heapq.py ..F [ 5%]
../build/extra_tests/test_immutables_map.py ............................ [ 5%]
............................. [ 6%]
../build/extra_tests/test_import.py . [ 6%]
../build/extra_tests/test_inspect.py .FFF [ 7%]
../build/extra_tests/test_interpreter.py . [ 7%]
../build/extra_tests/test_itertools.py ... [ 7%]
../build/extra_tests/test_jit.py ... [ 7%]
../build/extra_tests/test_json.py ..... [ 7%]
../build/extra_tests/test_linecache.py . [ 7%]
../build/extra_tests/test_lzma.py . [ 7%]
../build/extra_tests/test_modules.py . [ 7%]
../build/extra_tests/test_os.py ......... [ 7%]
../build/extra_tests/test_posix.py ..... [ 7%]
../build/extra_tests/test_posix_extra.py . [ 7%]
../build/extra_tests/test_pyexpat.py . [ 7%]
../build/extra_tests/test_pypy_modules.py ....F......................... [ 8%]
. [ 8%]
../build/extra_tests/test_pypy_remote_debug.py ................. [ 9%]
../build/extra_tests/test_pypy_util_cffi.py . [ 9%]
../build/extra_tests/test_recursion.py s [ 9%]
../build/extra_tests/test_scandir.py ................... [ 10%]
../build/extra_tests/test_semlock.py . [ 10%]
../build/extra_tests/test_sqlite3.py ................................... [ 11%]
..................................... [ 12%]
../build/extra_tests/test_ssl.py . [ 12%]
../build/extra_tests/test_startup.py ... [ 12%]
../build/extra_tests/test_stringio.py ... [ 12%]
../build/extra_tests/test_structseq.py ...... [ 12%]
../build/extra_tests/test_sysconfig.py . [ 12%]
../build/extra_tests/test_syslog.py . [ 12%]
../build/extra_tests/test_textio.py . [ 12%]
../build/extra_tests/test_tk.py . [ 12%]
../build/extra_tests/test_traceback_suggestions.py .........F.. [ 13%]
../build/extra_tests/test_unicode.py .......................... [ 14%]
../build/extra_tests/test_venv.py .. [ 14%]
../build/extra_tests/test_weakref.py .. [ 14%]
../build/extra_tests/cffi_tests/test_c.py .............................. [ 15%]
............................sssssssssssssss.sss...s...s................. [ 17%]
....................s.............s......s..s....................s...... [ 19%]
............s..........s........................s...... [ 21%]
../build/extra_tests/cffi_tests/test_version.py .. [ 21%]
../build/extra_tests/cffi_tests/cffi0/test_cdata.py . [ 21%]
../build/extra_tests/cffi_tests/cffi0/test_ctypes.py ..................s [ 22%]
...............s.s.s.......s.........................sssssss..s..s...... [ 24%]
.......................................sssssssss [ 25%]
../build/extra_tests/cffi_tests/cffi0/test_ffi_backend.py .............. [ 26%]
.....................................................................s.. [ 28%]
.s....................................................................s. [ 30%]
....................ss...................s.s...s................... [ 32%]
../build/extra_tests/cffi_tests/cffi0/test_function.py ......s.......s.. [ 33%]
.s.s..ss..sss..ss [ 33%]
../build/extra_tests/cffi_tests/cffi0/test_model.py ............. [ 34%]
../build/extra_tests/cffi_tests/cffi0/test_ownlib.py .sss...sssss [ 34%]
../build/extra_tests/cffi_tests/cffi0/test_parsing.py .................. [ 35%]
.......s........... [ 35%]
../build/extra_tests/cffi_tests/cffi0/test_platform.py .... [ 36%]
../build/extra_tests/cffi_tests/cffi0/test_unicode_literals.py ......... [ 36%]
... [ 36%]
../build/extra_tests/cffi_tests/cffi0/test_verify.py ................... [ 36%]
s......s.....s.......................................................... [ 39%]
.......................................................s...s............ [ 41%]
...... [ 41%]
../build/extra_tests/cffi_tests/cffi0/test_version.py sssss [ 41%]
../build/extra_tests/cffi_tests/cffi0/test_vgen.py ...................s. [ 42%]
.....s.....s............................................................ [ 44%]
.....................................................s...s.............. [ 46%]
.... [ 47%]
../build/extra_tests/cffi_tests/cffi0/test_zdistutils.py ............... [ 47%]
....................... [ 48%]
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py FFFFFFF. [ 48%]
../build/extra_tests/cffi_tests/cffi1/test_cffi_binary.py s [ 48%]
../build/extra_tests/cffi_tests/cffi1/test_commontypes.py ss. [ 48%]
../build/extra_tests/cffi_tests/cffi1/test_dlopen.py ............... [ 49%]
../build/extra_tests/cffi_tests/cffi1/test_dlopen_unicode_literals.py .. [ 49%]
............. [ 49%]
../build/extra_tests/cffi_tests/cffi1/test_ffi_obj.py .................. [ 50%]
...........s............. [ 50%]
../build/extra_tests/cffi_tests/cffi1/test_function_args.py s [ 50%]
../build/extra_tests/cffi_tests/cffi1/test_new_ffi_1.py ................ [ 51%]
.................................................................s...s.. [ 53%]
.................................... [ 54%]
../build/extra_tests/cffi_tests/cffi1/test_pkgconfig.py ... [ 54%]
../build/extra_tests/cffi_tests/cffi1/test_re_python.py ................ [ 55%]
..... [ 55%]
../build/extra_tests/cffi_tests/cffi1/test_realize_c_type.py ......... [ 55%]
../build/extra_tests/cffi_tests/cffi1/test_recompiler.py ............... [ 56%]
..................................................s..................... [ 58%]
...............................................s.....s.................. [ 60%]
........ [ 61%]
../build/extra_tests/cffi_tests/cffi1/test_unicode_literals.py ....... [ 61%]
../build/extra_tests/cffi_tests/cffi1/test_verify1.py .................. [ 61%]
............s........................................................... [ 64%]
...............s.....xxx....x......................s...s....s...s... [ 66%]
../build/extra_tests/cffi_tests/cffi1/test_zdist.py .................... [ 66%]
... [ 66%]
../build/extra_tests/cffi_tests/embedding/test_basic.py sssss [ 67%]
../build/extra_tests/cffi_tests/embedding/test_performance.py sssss [ 67%]
../build/extra_tests/cffi_tests/embedding/test_recursive.py s [ 67%]
../build/extra_tests/cffi_tests/embedding/test_thread.py ssss [ 67%]
../build/extra_tests/cffi_tests/embedding/test_tlocal.py s [ 67%]
../build/extra_tests/ctypes_tests/test_anon.py .. [ 67%]
../build/extra_tests/ctypes_tests/test_array.py ....... [ 67%]
../build/extra_tests/ctypes_tests/test_base.py ... [ 67%]
../build/extra_tests/ctypes_tests/test_bitfields.py ... [ 67%]
../build/extra_tests/ctypes_tests/test_buffers.py ..................... [ 68%]
../build/extra_tests/ctypes_tests/test_callback_traceback.py . [ 68%]
../build/extra_tests/ctypes_tests/test_callbacks.py .................... [ 69%]
.......... [ 69%]
../build/extra_tests/ctypes_tests/test_cast.py ..... [ 69%]
../build/extra_tests/ctypes_tests/test_errno.py . [ 69%]
../build/extra_tests/ctypes_tests/test_extra.py ............... [ 70%]
../build/extra_tests/ctypes_tests/test_funcptr.py . [ 70%]
../build/extra_tests/ctypes_tests/test_functions.py .............xx... [ 70%]
../build/extra_tests/ctypes_tests/test_guess_argtypes.py .. [ 70%]
../build/extra_tests/ctypes_tests/test_keepalive.py .................. [ 71%]
../build/extra_tests/ctypes_tests/test_loading.py . [ 71%]
../build/extra_tests/ctypes_tests/test_numbers.py ...............xX [ 72%]
../build/extra_tests/ctypes_tests/test_parameters.py .. [ 72%]
../build/extra_tests/ctypes_tests/test_pointers.py ..................... [ 72%]
[ 72%]
../build/extra_tests/ctypes_tests/test_prototypes.py ..... [ 72%]
../build/extra_tests/ctypes_tests/test_structures.py .................. [ 73%]
../build/extra_tests/ctypes_tests/test_unions.py .. [ 73%]
../build/extra_tests/ctypes_tests/test_values.py . [ 73%]
../build/extra_tests/ctypes_tests/test_win32.py s [ 73%]
../build/extra_tests/hpy_tests/test_dist_info.py .. [ 73%]
../build/extra_tests/hpy_tests/_vendored/test_00_basic.py .............. [ 74%]
.......................................... [ 75%]
../build/extra_tests/hpy_tests/_vendored/test_argparse.py .............. [ 75%]
........................................................................ [ 78%]
.... [ 78%]
../build/extra_tests/hpy_tests/_vendored/test_call.py .......... [ 78%]
../build/extra_tests/hpy_tests/_vendored/test_capsule.py .......... [ 78%]
../build/extra_tests/hpy_tests/_vendored/test_capsule_legacy.py .. [ 78%]
../build/extra_tests/hpy_tests/_vendored/test_contextvar.py .. [ 78%]
../build/extra_tests/hpy_tests/_vendored/test_cpy_compat.py ............ [ 79%]
...... [ 79%]
../build/extra_tests/hpy_tests/_vendored/test_eval.py .... [ 79%]
../build/extra_tests/hpy_tests/_vendored/test_helpers.py ...... [ 79%]
../build/extra_tests/hpy_tests/_vendored/test_hpybuildvalue.py ......... [ 80%]
..... [ 80%]
../build/extra_tests/hpy_tests/_vendored/test_hpybytes.py ............ [ 80%]
../build/extra_tests/hpy_tests/_vendored/test_hpydict.py ............ [ 81%]
../build/extra_tests/hpy_tests/_vendored/test_hpyerr.py ................ [ 81%]
...................... [ 82%]
../build/extra_tests/hpy_tests/_vendored/test_hpyfield.py ssss........ss [ 82%]
ss.. [ 82%]
../build/extra_tests/hpy_tests/_vendored/test_hpyglobal.py .. [ 82%]
../build/extra_tests/hpy_tests/_vendored/test_hpyimport.py .. [ 82%]
../build/extra_tests/hpy_tests/_vendored/test_hpyiter.py .... [ 83%]
../build/extra_tests/hpy_tests/_vendored/test_hpylist.py .......... [ 83%]
../build/extra_tests/hpy_tests/_vendored/test_hpylong.py ............... [ 83%]
..................... [ 84%]
../build/extra_tests/hpy_tests/_vendored/test_hpymodule.py ............. [ 84%]
... [ 84%]
../build/extra_tests/hpy_tests/_vendored/test_hpyslice.py ...... [ 85%]
../build/extra_tests/hpy_tests/_vendored/test_hpystructseq.py .... [ 85%]
../build/extra_tests/hpy_tests/_vendored/test_hpytuple.py ........ [ 85%]
../build/extra_tests/hpy_tests/_vendored/test_hpytype.py ............... [ 85%]
.ss.................................................... [ 87%]
../build/extra_tests/hpy_tests/_vendored/test_hpytype_legacy.py ........ [ 87%]
........ss..............................................ssssss.......... [ 90%]
[ 90%]
../build/extra_tests/hpy_tests/_vendored/test_hpyunicode.py ............ [ 90%]
.............................. [ 91%]
../build/extra_tests/hpy_tests/_vendored/test_importing.py ... [ 91%]
../build/extra_tests/hpy_tests/_vendored/test_legacy_forbidden.py .... [ 91%]
../build/extra_tests/hpy_tests/_vendored/test_number.py ................ [ 92%]
.. [ 92%]
../build/extra_tests/hpy_tests/_vendored/test_object.py ................ [ 92%]
.................................. [ 93%]
../build/extra_tests/hpy_tests/_vendored/test_slots.py ................. [ 94%]
......................... [ 95%]
../build/extra_tests/hpy_tests/_vendored/test_slots_legacy.py .......... [ 95%]
.......................................... [ 96%]
../build/extra_tests/hpy_tests/_vendored/test_support.py .. [ 96%]
../build/extra_tests/hpy_tests/_vendored/test_tracker.py ............ [ 97%]
../build/extra_tests/hpy_tests/_vendored/debug/test_builder_invalid.py . [ 97%]
... [ 97%]
../build/extra_tests/hpy_tests/_vendored/debug/test_charptr.py ..... [ 97%]
../build/extra_tests/hpy_tests/_vendored/debug/test_context_reuse.py . [ 97%]
../build/extra_tests/hpy_tests/_vendored/debug/test_handles_invalid.py . [ 97%]
ss... [ 97%]
../build/extra_tests/hpy_tests/_vendored/debug/test_handles_leak.py .... [ 97%]
......... [ 98%]
../build/extra_tests/hpy_tests/_vendored/debug/test_misc.py ..... [ 98%]
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_abitag.py ... [ 98%]
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py EEE [ 98%]
EEEEEEEsEEE [ 98%]
../build/extra_tests/hpy_tests/_vendored/trace/test_trace.py ... [ 98%]
../build/extra_tests/test_pyrepl/test_basic.py .............. [ 99%]
../build/extra_tests/test_pyrepl/test_bugs.py x.. [ 99%]
../build/extra_tests/test_pyrepl/test_functional.py ....FF.F.... [ 99%]
../build/extra_tests/test_pyrepl/test_keymap.py . [ 99%]
../build/extra_tests/test_pyrepl/test_reader.py . [ 99%]
../build/extra_tests/test_pyrepl/test_readline.py .... [100%]
==================================== ERRORS ====================================
__________ ERROR at setup of TestDistutils.test_cpymod_setup_install ___________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
_ ERROR at setup of TestDistutils.test_cpymod_with_empty_hpy_ext_modules_setup_install _
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
_____________ ERROR at setup of TestDistutils.test_hpymod_py_stub ______________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
__________ ERROR at setup of TestDistutils.test_hpymod_build_platlib ___________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
____ ERROR at setup of TestDistutils.test_hpymod_build_ext_inplace[hybrid] _____
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
___ ERROR at setup of TestDistutils.test_hpymod_build_ext_inplace[universal] ___
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
______ ERROR at setup of TestDistutils.test_hpymod_setup_install[hybrid] _______
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
_____ ERROR at setup of TestDistutils.test_hpymod_setup_install[universal] _____
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
__________ ERROR at setup of TestDistutils.test_hpymod_wheel[hybrid] ___________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
_________ ERROR at setup of TestDistutils.test_hpymod_wheel[universal] _________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
__________ ERROR at setup of TestDistutils.test_hpymod_legacy[hybrid] __________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
________ ERROR at setup of TestDistutils.test_hpymod_legacy[universal] _________
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
___ ERROR at setup of TestDistutils.test_hpymod_legacy_fails_with_universal ____
request = <SubRequest 'venv_template' for <Function test_cpymod_setup_install>>
tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x00007fc34b1aa8e0>, _basetemp=PosixPath('/tmp/pytest-of-buildslave/pytest-699')))
@pytest.fixture(scope='session')
def venv_template(request, tmpdir_factory):
if getattr(request.config.option, "reuse_venv", False):
d = py.path.local('/tmp/venv-for-hpytest')
if d.check(dir=True):
# if it exists, we assume it's correct. If you want to recreate,
# just manually delete /tmp/venv-for-hpytest
return d
else:
d = tmpdir_factory.mktemp('venv')
> venv.create(d, with_pip=True)
../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/venv/__init__.py:528: in create
builder.create(env_dir)
../build/lib-python/3/venv/__init__.py:77: in create
self._setup_pip(context)
../build/lib-python/3/venv/__init__.py:387: in _setup_pip
self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
../build/lib-python/3/venv/__init__.py:383: in _call_new_python
subprocess.check_output(args, **kwargs)
../build/lib-python/3/subprocess.py:466: in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip'],)
kwargs = {'cwd': '/tmp/pytest-of-buildslave/pytest-699/venv0', 'env': {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylin.../rh/devtoolset-10/root', ...}, 'executable': '/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', 'stderr': -2, ...}
process = <Popen: returncode: 127 args: ['/tmp/pytest-of-buildslave/pytest-699/venv0/b...>
stdout = b'/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3: error while loading shared libraries: libpypy3.12-c.so: cannot open shared object file: No such file or directory\n'
stderr = None, retcode = 127
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout (seconds) is given and the process takes too long,
a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already populated the output so
# far into the TimeoutExpired exception.
process.wait()
raise
except: # Including KeyboardInterrupt, communicate handled that.
process.kill()
# We don't call process.wait() as .__exit__ does that for us.
raise
retcode = process.poll()
if check and retcode:
> raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['/tmp/pytest-of-buildslave/pytest-699/venv0/bin/pypy3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 127.
../build/lib-python/3/subprocess.py:571: CalledProcessError
=================================== FAILURES ===================================
_____________________________ test_get_hashed_dir ______________________________
from importlib.util import spec_from_file_location, module_from_spec
import os
try:
import cpyext
except ImportError:
pass # no 'cpyext', but we still have to define e.g. awaitType
else:
import _pypy_testcapi
cfile = '_testcapimodule.c'
thisdir = os.path.dirname(__file__)
output_dir = _pypy_testcapi.get_hashed_dir(os.path.join(thisdir, cfile))
modfile = '_testcapi' + _pypy_testcapi._get_c_extension_suffix()
spec = spec_from_file_location('_testcapi',
os.path.join(thisdir, modfile))
try:
> module_from_spec(spec)
../build/lib_pypy/_testcapi.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spec = ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000000c7f4090>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so')
> ???
<frozen importlib._bootstrap>:813:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_frozen_importlib_external.ExtensionFileLoader object at 0x000000000c7f4090>
spec = ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000000c7f4090>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so')
> ???
<builtin>/frozen importlib._bootstrap_external:1293:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <built-in function create_dynamic>
args = (ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000000c7f4090>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so'),)
kwds = {}
> ???
E ImportError: /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory
<frozen importlib._bootstrap>:488: ImportError
During handling of the above exception, another exception occurred:
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000000c7f4020>
obj = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o'
src = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c'
ext = '.c'
cc_args = ['-fPIC', '-Wimplicit-function-declaration', '-O0', '-g3', '-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12', '-c']
extra_postargs = []
pp_opts = ['-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12']
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
compiler_so = compiler_fixup(self.compiler_so, cc_args + extra_postargs)
try:
> self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/unixccompiler.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000000c7f4020>
cmd = ['gcc', '-pthread', '-DNDEBUG', '-O2', '-fPIC', '-fPIC', ...], kwargs = {}
def spawn(self, cmd, **kwargs):
> spawn(cmd, dry_run=self.dry_run, **kwargs)
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/ccompiler.py:1041:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cmd = '/opt/rh/devtoolset-10/root/usr/bin/gcc', search_path = 1, verbose = 0
dry_run = 0
env = {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylinux2014_x86_64', 'AUDITWHEEL_POLICY': 'manylinux2014', 'DEVTOOLSET_ROOTPATH': '/opt/rh/devtoolset-10/root', ...}
def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None): # noqa: C901
"""Run another program, specified as a command list 'cmd', in a new process.
'cmd' is just the argument list for the new process, ie.
cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
There is no way to run a program with a name different from that of its
executable.
If 'search_path' is true (the default), the system's executable
search path will be used to find the program; otherwise, cmd[0]
must be the exact path to the executable. If 'dry_run' is true,
the command will not actually be run.
Raise DistutilsExecError if running the program fails in any way; just
return on success.
"""
# cmd is documented as a list, but just in case some code passes a tuple
# in, protect our %-formatting code against horrible death
cmd = list(cmd)
log.info(subprocess.list2cmdline(cmd))
if dry_run:
return
if search_path:
executable = find_executable(cmd[0])
if executable is not None:
cmd[0] = executable
env = env if env is not None else dict(os.environ)
if sys.platform == 'darwin':
from distutils.util import MACOSX_VERSION_VAR, get_macosx_target_ver
macosx_target_ver = get_macosx_target_ver()
if macosx_target_ver:
env[MACOSX_VERSION_VAR] = macosx_target_ver
try:
proc = subprocess.Popen(cmd, env=env)
proc.wait()
exitcode = proc.returncode
except OSError as exc:
if not DEBUG:
cmd = cmd[0]
raise DistutilsExecError(f"command {cmd!r} failed: {exc.args[-1]}") from exc
if exitcode:
if not DEBUG:
cmd = cmd[0]
> raise DistutilsExecError(f"command {cmd!r} failed with exit code {exitcode}")
E distutils.errors.DistutilsExecError: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/spawn.py:68: DistutilsExecError
During handling of the above exception, another exception occurred:
@pytest.mark.skipif(sys.implementation.name != 'pypy', reason='pypy only')
def test_get_hashed_dir():
import sys
> from lib_pypy import _testcapi
../build/extra_tests/test_capi.py:7:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/_testcapi.py:25: in <module>
mod = _pypy_testcapi.compile_shared(cfile, '_testcapi', thisdir)
../build/lib_pypy/_pypy_testcapi.py:78: in compile_shared
res = compiler.compile([os.path.join(thisdir, csource)],
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/ccompiler.py:600: in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000000c7f4020>
obj = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o'
src = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c'
ext = '.c'
cc_args = ['-fPIC', '-Wimplicit-function-declaration', '-O0', '-g3', '-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12', '-c']
extra_postargs = []
pp_opts = ['-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12']
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
compiler_so = compiler_fixup(self.compiler_so, cc_args + extra_postargs)
try:
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
except DistutilsExecError as msg:
> raise CompileError(msg)
E distutils.errors.CompileError: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/unixccompiler.py:190: CompileError
----------------------------- Captured stderr call -----------------------------
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_get_type_dict’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:827:27: warning: implicit declaration of function ‘PyType_GetDict’; did you mean ‘PyType_GetSlot’? [-Wimplicit-function-declaration]
827 | PyObject *long_dict = PyType_GetDict(&PyLong_Type);
| ^~~~~~~~~~~~~~
| PyType_GetSlot
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:827:27: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:837:27: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
837 | PyObject *type_dict = PyType_GetDict((PyTypeObject*)HeapTypeNameType);
| ^~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_pep3118_obsolete_write_locks’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1483:42: warning: implicit declaration of function ‘_PyImport_GetModuleAttrString’; did you mean ‘PyImport_GetModuleDict’? [-Wimplicit-function-declaration]
1483 | PyTypeObject *type = (PyTypeObject *)_PyImport_GetModuleAttrString(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyImport_GetModuleDict
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1483:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1483 | PyTypeObject *type = (PyTypeObject *)_PyImport_GetModuleAttrString(
| ^
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:47:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_PyBuffer_SizeFromFormat’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1533:17: warning: implicit declaration of function ‘PyBuffer_SizeFromFormat’; did you mean ‘test_PyBuffer_SizeFromFormat’? [-Wimplicit-function-declaration]
1533 | RETURN_SIZE(PyBuffer_SizeFromFormat(format));
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi/util.h:18:28: note: in definition of macro ‘RETURN_SIZE’
18 | Py_ssize_t _ret = (value); \
| ^~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_current_tstate_matches’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1565:31: warning: implicit declaration of function ‘Py_NewInterpreter’ [-Wimplicit-function-declaration]
1565 | PyThreadState *substate = Py_NewInterpreter();
| ^~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1565:31: warning: initialization of ‘PyThreadState *’ {aka ‘struct _ts *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1577:5: warning: implicit declaration of function ‘Py_EndInterpreter’ [-Wimplicit-function-declaration]
1577 | Py_EndInterpreter(substate);
| ^~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘run_in_subinterp’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1605:14: warning: assignment to ‘PyThreadState *’ {aka ‘struct _ts *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1605 | substate = Py_NewInterpreter();
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1614:9: warning: implicit declaration of function ‘PyRun_SimpleStringFlags’; did you mean ‘PyRun_SimpleString’? [-Wimplicit-function-declaration]
1614 | r = PyRun_SimpleStringFlags(code, &cflags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| PyRun_SimpleString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘run_in_subinterp_with_config’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1690:11: error: unknown type name ‘PyInterpreterConfig’
1690 | const PyInterpreterConfig config = {
| ^~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1691:9: error: field name not in record or union initializer
1691 | .use_main_obmalloc = use_main_obmalloc,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1691:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:9: error: field name not in record or union initializer
1692 | .allow_fork = allow_fork,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:23: warning: excess elements in scalar initializer
1692 | .allow_fork = allow_fork,
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:23: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:9: error: field name not in record or union initializer
1693 | .allow_exec = allow_exec,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:23: warning: excess elements in scalar initializer
1693 | .allow_exec = allow_exec,
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:23: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:9: error: field name not in record or union initializer
1694 | .allow_threads = allow_threads,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:26: warning: excess elements in scalar initializer
1694 | .allow_threads = allow_threads,
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:26: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:9: error: field name not in record or union initializer
1695 | .allow_daemon_threads = allow_daemon_threads,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:33: warning: excess elements in scalar initializer
1695 | .allow_daemon_threads = allow_daemon_threads,
| ^~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:33: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:9: error: field name not in record or union initializer
1696 | .check_multi_interp_extensions = check_multi_interp_extensions,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:42: warning: excess elements in scalar initializer
1696 | .check_multi_interp_extensions = check_multi_interp_extensions,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:42: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:9: error: field name not in record or union initializer
1697 | .gil = gil,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:16: warning: excess elements in scalar initializer
1697 | .gil = gil,
| ^~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:16: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1699:5: error: unknown type name ‘PyStatus’; did you mean ‘PyLockStatus’?
1699 | PyStatus status = Py_NewInterpreterFromConfig(&substate, &config);
| ^~~~~~~~
| PyLockStatus
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1699:23: warning: implicit declaration of function ‘Py_NewInterpreterFromConfig’ [-Wimplicit-function-declaration]
1699 | PyStatus status = Py_NewInterpreterFromConfig(&substate, &config);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1700:9: warning: implicit declaration of function ‘PyStatus_Exception’; did you mean ‘PyExc_Exception’? [-Wimplicit-function-declaration]
1700 | if (PyStatus_Exception(status)) {
| ^~~~~~~~~~~~~~~~~~
| PyExc_Exception
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1705:9: warning: implicit declaration of function ‘_PyErr_SetFromPyStatus’ [-Wimplicit-function-declaration]
1705 | _PyErr_SetFromPyStatus(status);
| ^~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1706:25: warning: implicit declaration of function ‘PyErr_GetRaisedException’; did you mean ‘PyErr_GetHandledException’? [-Wimplicit-function-declaration]
1706 | PyObject *exc = PyErr_GetRaisedException();
| ^~~~~~~~~~~~~~~~~~~~~~~~
| PyErr_GetHandledException
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1706:25: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1708:9: warning: implicit declaration of function ‘_PyErr_ChainExceptions1’; did you mean ‘PyErr_NewException’? [-Wimplicit-function-declaration]
1708 | _PyErr_ChainExceptions1(exc);
| ^~~~~~~~~~~~~~~~~~~~~~~
| PyErr_NewException
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘_xid_capsule_destructor’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1723:5: error: unknown type name ‘_PyCrossInterpreterData’
1723 | _PyCrossInterpreterData *data = \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:14: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1724 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:14: note: each undeclared identifier is reported only once for each function it appears in
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:39: error: expected expression before ‘)’ token
1724 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:50,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1726:16: warning: implicit declaration of function ‘_PyCrossInterpreterData_Release’ [-Wimplicit-function-declaration]
1726 | assert(_PyCrossInterpreterData_Release(data) == 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘get_crossinterp_data’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:5: error: unknown type name ‘_PyCrossInterpreterData’
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:40,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:47: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/pymem.h:41:36: note: in definition of macro ‘PyMem_NEW’
41 | ( ((n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
| ^~~~
/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/pymem.h:42:18: error: expected expression before ‘)’ token
42 | ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:37: note: in expansion of macro ‘PyMem_NEW’
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1744:9: warning: implicit declaration of function ‘_PyObject_GetCrossInterpreterData’ [-Wimplicit-function-declaration]
1744 | if (_PyObject_GetCrossInterpreterData(obj, data) != 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘restore_crossinterp_data’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1764:5: error: unknown type name ‘_PyCrossInterpreterData’
1764 | _PyCrossInterpreterData *data = \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1765:14: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1765 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1765:39: error: expected expression before ‘)’ token
1765 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1769:12: warning: implicit declaration of function ‘_PyCrossInterpreterData_NewObject’ [-Wimplicit-function-declaration]
1769 | return _PyCrossInterpreterData_NewObject(data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1769:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
1769 | return _PyCrossInterpreterData_NewObject(data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_write_long_to_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2010:10: warning: implicit declaration of function ‘_Py_fopen_obj’ [-Wimplicit-function-declaration]
2010 | fp = _Py_fopen_obj(filename, "wb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2010:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2010 | fp = _Py_fopen_obj(filename, "wb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2016:5: warning: implicit declaration of function ‘PyMarshal_WriteLongToFile’; did you mean ‘pymarshal_write_long_to_file’? [-Wimplicit-function-declaration]
2016 | PyMarshal_WriteLongToFile(value, fp, version);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_write_long_to_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_write_object_to_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2035:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2035 | fp = _Py_fopen_obj(filename, "wb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2041:5: warning: implicit declaration of function ‘PyMarshal_WriteObjectToFile’; did you mean ‘PyMarshal_WriteObjectToString’? [-Wimplicit-function-declaration]
2041 | PyMarshal_WriteObjectToFile(obj, fp, version);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_WriteObjectToString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_short_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2059:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2059 | fp = _Py_fopen_obj(filename, "rb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2065:13: warning: implicit declaration of function ‘PyMarshal_ReadShortFromFile’; did you mean ‘pymarshal_read_short_from_file’? [-Wimplicit-function-declaration]
2065 | value = PyMarshal_ReadShortFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_read_short_from_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_long_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2084:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2084 | fp = _Py_fopen_obj(filename, "rb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2090:13: warning: implicit declaration of function ‘PyMarshal_ReadLongFromFile’; did you mean ‘pymarshal_read_long_from_file’? [-Wimplicit-function-declaration]
2090 | value = PyMarshal_ReadLongFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_read_long_from_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_last_object_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2106:16: warning: initialization of ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2106 | FILE *fp = _Py_fopen_obj(filename, "rb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2112:21: warning: implicit declaration of function ‘PyMarshal_ReadLastObjectFromFile’; did you mean ‘PyMarshal_ReadObjectFromString’? [-Wimplicit-function-declaration]
2112 | PyObject *obj = PyMarshal_ReadLastObjectFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_ReadObjectFromString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2112:21: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_object_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2129:16: warning: initialization of ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2129 | FILE *fp = _Py_fopen_obj(filename, "rb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2135:21: warning: implicit declaration of function ‘PyMarshal_ReadObjectFromFile’; did you mean ‘PyMarshal_ReadObjectFromString’? [-Wimplicit-function-declaration]
2135 | PyObject *obj = PyMarshal_ReadObjectFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_ReadObjectFromString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2135:21: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘dict_get_version’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2186:19: error: ‘PyDictObject’ has no member named ‘ma_version_tag’
2186 | version = dict->ma_version_tag;
| ^~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘raise_SIGINT_then_send_None’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2200:40: error: ‘PyGen_Type’ undeclared (first use in this function); did you mean ‘PySet_Type’?
2200 | if (!PyArg_ParseTuple(args, "O!", &PyGen_Type, &gen))
| ^~~~~~~~~~
| PySet_Type
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘new_hamt’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2298:12: warning: implicit declaration of function ‘_PyContext_NewHamtForTests’ [-Wimplicit-function-declaration]
2298 | return _PyContext_NewHamtForTests();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2298:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2298 | return _PyContext_NewHamtForTests();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:50,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_py_is_funcs’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2617:16: warning: implicit declaration of function ‘Py_Is’; did you mean ‘PyPy_Is’? [-Wimplicit-function-declaration]
2617 | assert(Py_Is(obj, obj)); \
| ^~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2651:5: note: in expansion of macro ‘TEST_PY_IS’
2651 | TEST_PY_IS();
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘type_assign_version’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2706:15: warning: implicit declaration of function ‘PyUnstable_Type_AssignVersionTag’ [-Wimplicit-function-declaration]
2706 | int res = PyUnstable_Type_AssignVersionTag((PyTypeObject *)type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_frame_getvar’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2911:12: warning: implicit declaration of function ‘PyFrame_GetVar’; did you mean ‘PyFrame_GetLasti’? [-Wimplicit-function-declaration]
2911 | return PyFrame_GetVar((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~
| PyFrame_GetLasti
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2911:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2911 | return PyFrame_GetVar((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_frame_getvarstring’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2927:12: warning: implicit declaration of function ‘PyFrame_GetVarString’; did you mean ‘PyFrame_GetBuiltins’? [-Wimplicit-function-declaration]
2927 | return PyFrame_GetVarString((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~
| PyFrame_GetBuiltins
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2927:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2927 | return PyFrame_GetVarString((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘gen_get_code’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2938:24: warning: implicit declaration of function ‘PyGen_GetCode’; did you mean ‘PyCode_GetCode’? [-Wimplicit-function-declaration]
2938 | return (PyObject *)PyGen_GetCode((PyGenObject *)gen);
| ^~~~~~~~~~~~~
| PyCode_GetCode
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2938:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2938 | return (PyObject *)PyGen_GetCode((PyGenObject *)gen);
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘eval_eval_code_ex’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3010:14: warning: implicit declaration of function ‘PyEval_EvalCodeEx’; did you mean ‘PyEval_EvalCode’? [-Wimplicit-function-declaration]
3010 | result = PyEval_EvalCodeEx(
| ^~~~~~~~~~~~~~~~~
| PyEval_EvalCode
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3010:12: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3010 | result = PyEval_EvalCodeEx(
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘settrace_to_record’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3167:5: warning: implicit declaration of function ‘PyEval_SetTrace’; did you mean ‘PyEval_GetFrame’? [-Wimplicit-function-declaration]
3167 | PyEval_SetTrace(record_func, list);
| ^~~~~~~~~~~~~~~
| PyEval_GetFrame
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘clear_managed_dict’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3201:5: warning: implicit declaration of function ‘_PyObject_ClearManagedDict’ [-Wimplicit-function-declaration]
3201 | _PyObject_ClearManagedDict(obj);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------ Captured log call -------------------------------
INFO root:spawn.py:38 gcc -pthread -DNDEBUG -O2 -fPIC -fPIC -Wimplicit-function-declaration -O0 -g3 -I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12 -c /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c -o /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o
______ test_raises_if_passed_naive_datetime_and_start_or_end_time_defined ______
def test_raises_if_passed_naive_datetime_and_start_or_end_time_defined():
class Foo(datetime.tzinfo):
def utcoffset(self, dt):
return datetime.timedelta(0.1)
naive = datetime.datetime(2014, 9, 22)
aware = datetime.datetime(2014, 9, 22, tzinfo=Foo())
assert naive != aware
with pytest.raises(TypeError) as exc:
naive.__sub__(aware)
> assert str(exc.value) == "can't subtract offset-naive and offset-aware datetimes"
E assert 'cannot mix n...ne-aware time' == "can't subtra...are datetimes"
E - can't subtract offset-naive and offset-aware datetimes
E + cannot mix naive and timezone-aware time
../build/extra_tests/test_datetime.py:246: AssertionError
______________________________ test_return_types _______________________________
def test_return_types():
td = datetime.timedelta(5)
assert type(td.total_seconds()) is float
class sub(datetime.timedelta): pass
> assert type(+sub()) is datetime.timedelta
E AssertionError: assert <class 'extra_tests.test_datetime.test_return_types.<locals>.sub'> is <class '_pydatetime.timedelta'>
E + where <class 'extra_tests.test_datetime.test_return_types.<locals>.sub'> = type(+extra_tests.test_datetime.test_return_types.<locals>.sub(0))
E + where extra_tests.test_datetime.test_return_types.<locals>.sub(0) = <class 'extra_tests.test_datetime.test_return_types.<locals>.sub'>()
E + and <class '_pydatetime.timedelta'> = datetime.timedelta
../build/extra_tests/test_datetime.py:314: AssertionError
______________________________ test_subclass_date ______________________________
def test_subclass_date():
# replace() should return a subclass but not call __new__ or __init__.
class MyDate(datetime.date):
forbidden = False
def __new__(cls):
if cls.forbidden: FAIL
return datetime.date.__new__(cls, 2016, 2, 3)
def __init__(self, *args):
if self.forbidden: FAIL
d = MyDate()
d.forbidden = True
> d2 = d.replace(day=5)
../build/extra_tests/test_datetime.py:327:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = extra_tests.test_datetime.test_subclass_date.<locals>.MyDate(2016, 2, 3)
year = 2016, month = 2, day = 5
def replace(self, year=None, month=None, day=None):
"""Return a new date with new values for the specified fields."""
if year is None:
year = self._year
if month is None:
month = self._month
if day is None:
day = self._day
> return type(self)(year, month, day)
E TypeError: test_subclass_date.<locals>.MyDate.__new__() takes 1 positional argument but 4 were given
../build/lib-python/3/_pydatetime.py:1110: TypeError
______________________________ test_subclass_time ______________________________
def test_subclass_time():
# replace() should return a subclass but not call __new__ or __init__.
class MyTime(datetime.time):
forbidden = False
def __new__(cls):
if cls.forbidden: FAIL
return datetime.time.__new__(cls, 1, 2, 3)
def __init__(self, *args):
if self.forbidden: FAIL
d = MyTime()
d.forbidden = True
> d2 = d.replace(hour=5)
../build/extra_tests/test_datetime.py:342:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = extra_tests.test_datetime.test_subclass_time.<locals>.MyTime(1, 2, 3)
hour = 5, minute = 2, second = 3, microsecond = 0, tzinfo = None
def replace(self, hour=None, minute=None, second=None, microsecond=None,
tzinfo=True, *, fold=None):
"""Return a new time with new values for the specified fields."""
if hour is None:
hour = self.hour
if minute is None:
minute = self.minute
if second is None:
second = self.second
if microsecond is None:
microsecond = self.microsecond
if tzinfo is True:
tzinfo = self.tzinfo
if fold is None:
fold = self._fold
> return type(self)(hour, minute, second, microsecond, tzinfo, fold=fold)
E TypeError: test_subclass_time.<locals>.MyTime.__new__() got an unexpected keyword argument 'fold'
../build/lib-python/3/_pydatetime.py:1635: TypeError
____________________________ test_subclass_datetime ____________________________
def test_subclass_datetime():
# replace() should return a subclass but not call __new__ or __init__.
class MyDatetime(datetime.datetime):
forbidden = False
def __new__(cls):
if cls.forbidden: FAIL
return datetime.datetime.__new__(cls, 2016, 4, 5, 1, 2, 3)
def __init__(self, *args):
if self.forbidden: FAIL
d = MyDatetime()
d.forbidden = True
> d2 = d.replace(hour=7)
../build/extra_tests/test_datetime.py:357:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = extra_tests.test_datetime.test_subclass_datetime.<locals>.MyDatetime(2016, 4, 5, 1, 2, 3)
year = 2016, month = 4, day = 5, hour = 7, minute = 2, second = 3
microsecond = 0, tzinfo = None
def replace(self, year=None, month=None, day=None, hour=None,
minute=None, second=None, microsecond=None, tzinfo=True,
*, fold=None):
"""Return a new datetime with new values for the specified fields."""
if year is None:
year = self.year
if month is None:
month = self.month
if day is None:
day = self.day
if hour is None:
hour = self.hour
if minute is None:
minute = self.minute
if second is None:
second = self.second
if microsecond is None:
microsecond = self.microsecond
if tzinfo is True:
tzinfo = self.tzinfo
if fold is None:
fold = self.fold
> return type(self)(year, month, day, hour, minute, second,
microsecond, tzinfo, fold=fold)
E TypeError: test_subclass_datetime.<locals>.MyDatetime.__new__() got an unexpected keyword argument 'fold'
../build/lib-python/3/_pydatetime.py:1980: TypeError
______________________________ test_partial_stack ______________________________
def test_partial_stack():
# issue 3988
stack = []
def multiply(a, b):
frame = sys._getframe()
while frame:
stack.append(frame.f_code.co_name)
frame = frame.f_back
return a * b
penta = functools.partial(multiply, 5)
assert penta(2) == 10
assert len(stack) > 1
# Make sure partial.__call__ is not in the first few stack functions
> assert all([f != "__call__" for f in stack[:3]])
E assert False
E + where False = all([True, False, True])
../build/extra_tests/test_functools.py:19: AssertionError
_____________________________ test_lru_cache_stack _____________________________
def test_lru_cache_stack():
# issue 3988
stack = []
@functools.lru_cache
def multiply(a, b):
frame = sys._getframe()
while frame:
stack.append(frame.f_code.co_name)
frame = frame.f_back
return a * b
assert multiply(2, 5) == 10
assert len(stack) > 1
print(stack)
# Make sure _lru_cache.wrapper is not in the first few stack functions
> assert all([f != "wrapper" for f in stack[:3]])
E assert False
E + where False = all([True, False, True])
../build/extra_tests/test_functools.py:36: AssertionError
----------------------------- Captured stdout call -----------------------------
['multiply', 'wrapper', 'test_lru_cache_stack', 'pytest_pyfunc_call', '_multicall', '_hookexec', '__call__', 'runtest', 'pytest_runtest_call', '_multicall', '_hookexec', '__call__', '<lambda>', 'from_call', 'call_runtest_hook', 'call_and_report', 'runtestprotocol', 'pytest_runtest_protocol', '_multicall', '_hookexec', '__call__', 'pytest_runtestloop', '_multicall', '_hookexec', '__call__', '_main', 'wrap_session', 'pytest_cmdline_main', '_multicall', '_hookexec', '__call__', 'main', 'console_main', '<module>', '_run_code', '_run_module_as_main']
__________________ test_check_linked_tournament_tree_in_place __________________
def test_check_linked_tournament_tree_in_place():
import heapq
> assert hasattr(heapq, '_MergeNode')
E AssertionError: assert False
E + where False = hasattr(<module 'heapq' from '/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/heapq.py'>, '_MergeNode')
../build/extra_tests/test_heapq.py:45: AssertionError
__________________________ test_object_new_signature ___________________________
def test_object_new_signature():
sig = inspect.signature(object.__new__)
params = list(sig.parameters.values())
first = params[0]
> assert first.name == 'args'
E AssertionError: assert 'type' == 'args'
E - args
E + type
../build/extra_tests/test_inspect.py:14: AssertionError
_________________________ test_signature_builtin_types _________________________
def test_signature_builtin_types():
assert str(inspect.signature(complex)).startswith('(real')
> assert str(inspect.signature(types.CodeType)).startswith('(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags,')
../build/extra_tests/test_inspect.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/inspect.py:3348: in signature
return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
../build/lib-python/3/inspect.py:3085: in from_callable
return _signature_from_callable(obj, sigcls=cls,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
obj = <class 'code'>
def _signature_from_callable(obj, *,
follow_wrapper_chains=True,
skip_bound_arg=True,
globals=None,
locals=None,
eval_str=False,
sigcls):
"""Private helper function to get signature for arbitrary
callable objects.
"""
_get_signature_of = functools.partial(_signature_from_callable,
follow_wrapper_chains=follow_wrapper_chains,
skip_bound_arg=skip_bound_arg,
globals=globals,
locals=locals,
sigcls=sigcls,
eval_str=eval_str)
if not callable(obj):
raise TypeError('{!r} is not a callable object'.format(obj))
if isinstance(obj, types.MethodType):
# In this case we skip the first parameter of the underlying
# function (usually `self` or `cls`).
sig = _get_signature_of(obj.__func__)
if skip_bound_arg:
return _signature_bound_method(sig)
else:
return sig
# Was this function wrapped by a decorator?
if follow_wrapper_chains:
# Unwrap until we find an explicit signature or a MethodType (which will be
# handled explicitly below).
obj = unwrap(obj, stop=(lambda f: hasattr(f, "__signature__")
or isinstance(f, types.MethodType)))
if isinstance(obj, types.MethodType):
# If the unwrapped object is a *method*, we might want to
# skip its first parameter (self).
# See test_signature_wrapped_bound_method for details.
return _get_signature_of(obj)
try:
sig = obj.__signature__
except AttributeError:
pass
else:
if sig is not None:
# since __text_signature__ is not writable on classes, __signature__
# may contain text (or be a callable that returns text);
# if so, convert it
o_sig = sig
if not isinstance(sig, (Signature, str)) and callable(sig):
sig = sig()
if isinstance(sig, str):
sig = _signature_fromstr(sigcls, obj, sig)
if not isinstance(sig, Signature):
raise TypeError(
'unexpected object {!r} in __signature__ '
'attribute'.format(o_sig))
return sig
try:
partialmethod = obj._partialmethod
except AttributeError:
pass
else:
if isinstance(partialmethod, functools.partialmethod):
# Unbound partialmethod (see functools.partialmethod)
# This means, that we need to calculate the signature
# as if it's a regular partial object, but taking into
# account that the first positional argument
# (usually `self`, or `cls`) will not be passed
# automatically (as for boundmethods)
wrapped_sig = _get_signature_of(partialmethod.func)
sig = _signature_get_partial(wrapped_sig, partialmethod, (None,))
first_wrapped_param = tuple(wrapped_sig.parameters.values())[0]
if first_wrapped_param.kind is Parameter.VAR_POSITIONAL:
# First argument of the wrapped callable is `*args`, as in
# `partialmethod(lambda *args)`.
return sig
else:
sig_params = tuple(sig.parameters.values())
assert (not sig_params or
first_wrapped_param is not sig_params[0])
new_params = (first_wrapped_param,) + sig_params
return sig.replace(parameters=new_params)
if isfunction(obj) or _signature_is_functionlike(obj):
# If it's a pure Python function, or an object that is duck type
# of a Python function (Cython functions, for instance), then:
return _signature_from_function(sigcls, obj,
skip_bound_arg=skip_bound_arg,
globals=globals, locals=locals, eval_str=eval_str)
if _signature_is_builtin(obj):
return _signature_from_builtin(sigcls, obj,
skip_bound_arg=skip_bound_arg)
if isinstance(obj, functools.partial):
wrapped_sig = _get_signature_of(obj.func)
return _signature_get_partial(wrapped_sig, obj)
if isinstance(obj, type):
# obj is a class or a metaclass
# First, let's see if it has an overloaded __call__ defined
# in its metaclass
call = _signature_get_user_defined_method(type(obj), '__call__')
if call is not None:
return _get_signature_of(call)
new = _signature_get_user_defined_method(obj, '__new__')
init = _signature_get_user_defined_method(obj, '__init__')
# Go through the MRO and see if any class has user-defined
# pure Python __new__ or __init__ method
for base in obj.__mro__:
# Now we check if the 'obj' class has an own '__new__' method
if new is not None and '__new__' in base.__dict__:
sig = _get_signature_of(new)
if skip_bound_arg:
sig = _signature_bound_method(sig)
return sig
# or an own '__init__' method
elif init is not None and '__init__' in base.__dict__:
return _get_signature_of(init)
# At this point we know, that `obj` is a class, with no user-
# defined '__init__', '__new__', or class-level '__call__'
for base in obj.__mro__[:-1]:
# Since '__text_signature__' is implemented as a
# descriptor that extracts text signature from the
# class docstring, if 'obj' is derived from a builtin
# class, its own '__text_signature__' may be 'None'.
# Therefore, we go through the MRO (except the last
# class in there, which is 'object') to find the first
# class with non-empty text signature.
try:
text_sig = base.__text_signature__
except AttributeError:
pass
else:
if text_sig:
# If 'base' class has a __text_signature__ attribute:
# return a signature based on it
return _signature_fromstr(sigcls, base, text_sig)
# No '__text_signature__' was found for the 'obj' class.
# Last option is to check if its '__init__' is
# object.__init__ or type.__init__.
if type not in obj.__mro__:
# We have a class (not metaclass), but no user-defined
# __init__ or __new__ for it
if (obj.__init__ is object.__init__ and
obj.__new__ is object.__new__):
# Return a signature of 'object' builtin.
return sigcls.from_callable(object)
else:
> raise ValueError(
'no signature found for builtin type {!r}'.format(obj))
E ValueError: no signature found for builtin type <class 'code'>
../build/lib-python/3/inspect.py:2666: ValueError
______________________________ test_cpyext_fails _______________________________
from importlib.util import spec_from_file_location, module_from_spec
import os
try:
import cpyext
except ImportError:
pass # no 'cpyext', but we still have to define e.g. awaitType
else:
import _pypy_testcapi
cfile = '_testcapimodule.c'
thisdir = os.path.dirname(__file__)
output_dir = _pypy_testcapi.get_hashed_dir(os.path.join(thisdir, cfile))
modfile = '_testcapi' + _pypy_testcapi._get_c_extension_suffix()
spec = spec_from_file_location('_testcapi',
os.path.join(thisdir, modfile))
try:
> module_from_spec(spec)
../build/lib_pypy/_testcapi.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spec = ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000001110fbb0>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so')
> ???
<frozen importlib._bootstrap>:813:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_frozen_importlib_external.ExtensionFileLoader object at 0x000000001110fbb0>
spec = ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000001110fbb0>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so')
> ???
<builtin>/frozen importlib._bootstrap_external:1293:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <built-in function create_dynamic>
args = (ModuleSpec(name='_testcapi', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x000000001110fbb0>, origin='/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so'),)
kwds = {}
> ???
E ImportError: /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi.pypy312-pp73-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory
<frozen importlib._bootstrap>:488: ImportError
During handling of the above exception, another exception occurred:
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000001110fb40>
obj = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o'
src = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c'
ext = '.c'
cc_args = ['-fPIC', '-Wimplicit-function-declaration', '-O0', '-g3', '-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12', '-c']
extra_postargs = []
pp_opts = ['-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12']
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
compiler_so = compiler_fixup(self.compiler_so, cc_args + extra_postargs)
try:
> self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/unixccompiler.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000001110fb40>
cmd = ['gcc', '-pthread', '-DNDEBUG', '-O2', '-fPIC', '-fPIC', ...], kwargs = {}
def spawn(self, cmd, **kwargs):
> spawn(cmd, dry_run=self.dry_run, **kwargs)
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/ccompiler.py:1041:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cmd = '/opt/rh/devtoolset-10/root/usr/bin/gcc', search_path = 1, verbose = 0
dry_run = 0
env = {'AUDITWHEEL_ARCH': 'x86_64', 'AUDITWHEEL_PLAT': 'manylinux2014_x86_64', 'AUDITWHEEL_POLICY': 'manylinux2014', 'DEVTOOLSET_ROOTPATH': '/opt/rh/devtoolset-10/root', ...}
def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None): # noqa: C901
"""Run another program, specified as a command list 'cmd', in a new process.
'cmd' is just the argument list for the new process, ie.
cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
There is no way to run a program with a name different from that of its
executable.
If 'search_path' is true (the default), the system's executable
search path will be used to find the program; otherwise, cmd[0]
must be the exact path to the executable. If 'dry_run' is true,
the command will not actually be run.
Raise DistutilsExecError if running the program fails in any way; just
return on success.
"""
# cmd is documented as a list, but just in case some code passes a tuple
# in, protect our %-formatting code against horrible death
cmd = list(cmd)
log.info(subprocess.list2cmdline(cmd))
if dry_run:
return
if search_path:
executable = find_executable(cmd[0])
if executable is not None:
cmd[0] = executable
env = env if env is not None else dict(os.environ)
if sys.platform == 'darwin':
from distutils.util import MACOSX_VERSION_VAR, get_macosx_target_ver
macosx_target_ver = get_macosx_target_ver()
if macosx_target_ver:
env[MACOSX_VERSION_VAR] = macosx_target_ver
try:
proc = subprocess.Popen(cmd, env=env)
proc.wait()
exitcode = proc.returncode
except OSError as exc:
if not DEBUG:
cmd = cmd[0]
raise DistutilsExecError(f"command {cmd!r} failed: {exc.args[-1]}") from exc
if exitcode:
if not DEBUG:
cmd = cmd[0]
> raise DistutilsExecError(f"command {cmd!r} failed with exit code {exitcode}")
E distutils.errors.DistutilsExecError: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/spawn.py:68: DistutilsExecError
During handling of the above exception, another exception occurred:
def test_cpyext_fails():
# issue gh-5227
> import _testcapi
../build/extra_tests/test_inspect.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/_testcapi.py:25: in <module>
mod = _pypy_testcapi.compile_shared(cfile, '_testcapi', thisdir)
../build/lib_pypy/_pypy_testcapi.py:78: in compile_shared
res = compiler.compile([os.path.join(thisdir, csource)],
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/ccompiler.py:600: in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <distutils.unixccompiler.UnixCCompiler object at 0x000000001110fb40>
obj = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o'
src = '/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c'
ext = '.c'
cc_args = ['-fPIC', '-Wimplicit-function-declaration', '-O0', '-g3', '-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12', '-c']
extra_postargs = []
pp_opts = ['-I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12']
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
compiler_so = compiler_fixup(self.compiler_so, cc_args + extra_postargs)
try:
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
except DistutilsExecError as msg:
> raise CompileError(msg)
E distutils.errors.CompileError: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
pypy-venv/lib/pypy3.12/site-packages/setuptools/_distutils/unixccompiler.py:190: CompileError
----------------------------- Captured stderr call -----------------------------
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_get_type_dict’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:827:27: warning: implicit declaration of function ‘PyType_GetDict’; did you mean ‘PyType_GetSlot’? [-Wimplicit-function-declaration]
827 | PyObject *long_dict = PyType_GetDict(&PyLong_Type);
| ^~~~~~~~~~~~~~
| PyType_GetSlot
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:827:27: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:837:27: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
837 | PyObject *type_dict = PyType_GetDict((PyTypeObject*)HeapTypeNameType);
| ^~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_pep3118_obsolete_write_locks’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1483:42: warning: implicit declaration of function ‘_PyImport_GetModuleAttrString’; did you mean ‘PyImport_GetModuleDict’? [-Wimplicit-function-declaration]
1483 | PyTypeObject *type = (PyTypeObject *)_PyImport_GetModuleAttrString(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyImport_GetModuleDict
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1483:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1483 | PyTypeObject *type = (PyTypeObject *)_PyImport_GetModuleAttrString(
| ^
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:47:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_PyBuffer_SizeFromFormat’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1533:17: warning: implicit declaration of function ‘PyBuffer_SizeFromFormat’; did you mean ‘test_PyBuffer_SizeFromFormat’? [-Wimplicit-function-declaration]
1533 | RETURN_SIZE(PyBuffer_SizeFromFormat(format));
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapi/util.h:18:28: note: in definition of macro ‘RETURN_SIZE’
18 | Py_ssize_t _ret = (value); \
| ^~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_current_tstate_matches’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1565:31: warning: implicit declaration of function ‘Py_NewInterpreter’ [-Wimplicit-function-declaration]
1565 | PyThreadState *substate = Py_NewInterpreter();
| ^~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1565:31: warning: initialization of ‘PyThreadState *’ {aka ‘struct _ts *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1577:5: warning: implicit declaration of function ‘Py_EndInterpreter’ [-Wimplicit-function-declaration]
1577 | Py_EndInterpreter(substate);
| ^~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘run_in_subinterp’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1605:14: warning: assignment to ‘PyThreadState *’ {aka ‘struct _ts *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1605 | substate = Py_NewInterpreter();
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1614:9: warning: implicit declaration of function ‘PyRun_SimpleStringFlags’; did you mean ‘PyRun_SimpleString’? [-Wimplicit-function-declaration]
1614 | r = PyRun_SimpleStringFlags(code, &cflags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| PyRun_SimpleString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘run_in_subinterp_with_config’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1690:11: error: unknown type name ‘PyInterpreterConfig’
1690 | const PyInterpreterConfig config = {
| ^~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1691:9: error: field name not in record or union initializer
1691 | .use_main_obmalloc = use_main_obmalloc,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1691:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:9: error: field name not in record or union initializer
1692 | .allow_fork = allow_fork,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:23: warning: excess elements in scalar initializer
1692 | .allow_fork = allow_fork,
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1692:23: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:9: error: field name not in record or union initializer
1693 | .allow_exec = allow_exec,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:23: warning: excess elements in scalar initializer
1693 | .allow_exec = allow_exec,
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1693:23: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:9: error: field name not in record or union initializer
1694 | .allow_threads = allow_threads,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:26: warning: excess elements in scalar initializer
1694 | .allow_threads = allow_threads,
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1694:26: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:9: error: field name not in record or union initializer
1695 | .allow_daemon_threads = allow_daemon_threads,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:33: warning: excess elements in scalar initializer
1695 | .allow_daemon_threads = allow_daemon_threads,
| ^~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1695:33: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:9: error: field name not in record or union initializer
1696 | .check_multi_interp_extensions = check_multi_interp_extensions,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:42: warning: excess elements in scalar initializer
1696 | .check_multi_interp_extensions = check_multi_interp_extensions,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1696:42: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:9: error: field name not in record or union initializer
1697 | .gil = gil,
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:9: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:16: warning: excess elements in scalar initializer
1697 | .gil = gil,
| ^~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1697:16: note: (near initialization for ‘config’)
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1699:5: error: unknown type name ‘PyStatus’; did you mean ‘PyLockStatus’?
1699 | PyStatus status = Py_NewInterpreterFromConfig(&substate, &config);
| ^~~~~~~~
| PyLockStatus
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1699:23: warning: implicit declaration of function ‘Py_NewInterpreterFromConfig’ [-Wimplicit-function-declaration]
1699 | PyStatus status = Py_NewInterpreterFromConfig(&substate, &config);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1700:9: warning: implicit declaration of function ‘PyStatus_Exception’; did you mean ‘PyExc_Exception’? [-Wimplicit-function-declaration]
1700 | if (PyStatus_Exception(status)) {
| ^~~~~~~~~~~~~~~~~~
| PyExc_Exception
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1705:9: warning: implicit declaration of function ‘_PyErr_SetFromPyStatus’ [-Wimplicit-function-declaration]
1705 | _PyErr_SetFromPyStatus(status);
| ^~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1706:25: warning: implicit declaration of function ‘PyErr_GetRaisedException’; did you mean ‘PyErr_GetHandledException’? [-Wimplicit-function-declaration]
1706 | PyObject *exc = PyErr_GetRaisedException();
| ^~~~~~~~~~~~~~~~~~~~~~~~
| PyErr_GetHandledException
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1706:25: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1708:9: warning: implicit declaration of function ‘_PyErr_ChainExceptions1’; did you mean ‘PyErr_NewException’? [-Wimplicit-function-declaration]
1708 | _PyErr_ChainExceptions1(exc);
| ^~~~~~~~~~~~~~~~~~~~~~~
| PyErr_NewException
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘_xid_capsule_destructor’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1723:5: error: unknown type name ‘_PyCrossInterpreterData’
1723 | _PyCrossInterpreterData *data = \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:14: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1724 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:14: note: each undeclared identifier is reported only once for each function it appears in
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1724:39: error: expected expression before ‘)’ token
1724 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:50,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1726:16: warning: implicit declaration of function ‘_PyCrossInterpreterData_Release’ [-Wimplicit-function-declaration]
1726 | assert(_PyCrossInterpreterData_Release(data) == 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘get_crossinterp_data’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:5: error: unknown type name ‘_PyCrossInterpreterData’
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:40,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:47: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/pymem.h:41:36: note: in definition of macro ‘PyMem_NEW’
41 | ( ((n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
| ^~~~
/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/pymem.h:42:18: error: expected expression before ‘)’ token
42 | ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1739:37: note: in expansion of macro ‘PyMem_NEW’
1739 | _PyCrossInterpreterData *data = PyMem_NEW(_PyCrossInterpreterData, 1);
| ^~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1744:9: warning: implicit declaration of function ‘_PyObject_GetCrossInterpreterData’ [-Wimplicit-function-declaration]
1744 | if (_PyObject_GetCrossInterpreterData(obj, data) != 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘restore_crossinterp_data’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1764:5: error: unknown type name ‘_PyCrossInterpreterData’
1764 | _PyCrossInterpreterData *data = \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1765:14: error: ‘_PyCrossInterpreterData’ undeclared (first use in this function)
1765 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1765:39: error: expected expression before ‘)’ token
1765 | (_PyCrossInterpreterData *)PyCapsule_GetPointer(capsule, NULL);
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1769:12: warning: implicit declaration of function ‘_PyCrossInterpreterData_NewObject’ [-Wimplicit-function-declaration]
1769 | return _PyCrossInterpreterData_NewObject(data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:1769:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
1769 | return _PyCrossInterpreterData_NewObject(data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_write_long_to_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2010:10: warning: implicit declaration of function ‘_Py_fopen_obj’ [-Wimplicit-function-declaration]
2010 | fp = _Py_fopen_obj(filename, "wb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2010:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2010 | fp = _Py_fopen_obj(filename, "wb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2016:5: warning: implicit declaration of function ‘PyMarshal_WriteLongToFile’; did you mean ‘pymarshal_write_long_to_file’? [-Wimplicit-function-declaration]
2016 | PyMarshal_WriteLongToFile(value, fp, version);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_write_long_to_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_write_object_to_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2035:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2035 | fp = _Py_fopen_obj(filename, "wb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2041:5: warning: implicit declaration of function ‘PyMarshal_WriteObjectToFile’; did you mean ‘PyMarshal_WriteObjectToString’? [-Wimplicit-function-declaration]
2041 | PyMarshal_WriteObjectToFile(obj, fp, version);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_WriteObjectToString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_short_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2059:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2059 | fp = _Py_fopen_obj(filename, "rb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2065:13: warning: implicit declaration of function ‘PyMarshal_ReadShortFromFile’; did you mean ‘pymarshal_read_short_from_file’? [-Wimplicit-function-declaration]
2065 | value = PyMarshal_ReadShortFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_read_short_from_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_long_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2084:8: warning: assignment to ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2084 | fp = _Py_fopen_obj(filename, "rb");
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2090:13: warning: implicit declaration of function ‘PyMarshal_ReadLongFromFile’; did you mean ‘pymarshal_read_long_from_file’? [-Wimplicit-function-declaration]
2090 | value = PyMarshal_ReadLongFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| pymarshal_read_long_from_file
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_last_object_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2106:16: warning: initialization of ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2106 | FILE *fp = _Py_fopen_obj(filename, "rb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2112:21: warning: implicit declaration of function ‘PyMarshal_ReadLastObjectFromFile’; did you mean ‘PyMarshal_ReadObjectFromString’? [-Wimplicit-function-declaration]
2112 | PyObject *obj = PyMarshal_ReadLastObjectFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_ReadObjectFromString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2112:21: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘pymarshal_read_object_from_file’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2129:16: warning: initialization of ‘FILE *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2129 | FILE *fp = _Py_fopen_obj(filename, "rb");
| ^~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2135:21: warning: implicit declaration of function ‘PyMarshal_ReadObjectFromFile’; did you mean ‘PyMarshal_ReadObjectFromString’? [-Wimplicit-function-declaration]
2135 | PyObject *obj = PyMarshal_ReadObjectFromFile(fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyMarshal_ReadObjectFromString
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2135:21: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘dict_get_version’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2186:19: error: ‘PyDictObject’ has no member named ‘ma_version_tag’
2186 | version = dict->ma_version_tag;
| ^~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘raise_SIGINT_then_send_None’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2200:40: error: ‘PyGen_Type’ undeclared (first use in this function); did you mean ‘PySet_Type’?
2200 | if (!PyArg_ParseTuple(args, "O!", &PyGen_Type, &gen))
| ^~~~~~~~~~
| PySet_Type
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘new_hamt’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2298:12: warning: implicit declaration of function ‘_PyContext_NewHamtForTests’ [-Wimplicit-function-declaration]
2298 | return _PyContext_NewHamtForTests();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2298:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2298 | return _PyContext_NewHamtForTests();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12/Python.h:50,
from /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:22:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_py_is_funcs’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2617:16: warning: implicit declaration of function ‘Py_Is’; did you mean ‘PyPy_Is’? [-Wimplicit-function-declaration]
2617 | assert(Py_Is(obj, obj)); \
| ^~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2651:5: note: in expansion of macro ‘TEST_PY_IS’
2651 | TEST_PY_IS();
| ^~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘type_assign_version’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2706:15: warning: implicit declaration of function ‘PyUnstable_Type_AssignVersionTag’ [-Wimplicit-function-declaration]
2706 | int res = PyUnstable_Type_AssignVersionTag((PyTypeObject *)type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_frame_getvar’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2911:12: warning: implicit declaration of function ‘PyFrame_GetVar’; did you mean ‘PyFrame_GetLasti’? [-Wimplicit-function-declaration]
2911 | return PyFrame_GetVar((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~
| PyFrame_GetLasti
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2911:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2911 | return PyFrame_GetVar((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘test_frame_getvarstring’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2927:12: warning: implicit declaration of function ‘PyFrame_GetVarString’; did you mean ‘PyFrame_GetBuiltins’? [-Wimplicit-function-declaration]
2927 | return PyFrame_GetVarString((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~
| PyFrame_GetBuiltins
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2927:12: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
2927 | return PyFrame_GetVarString((PyFrameObject *)frame, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘gen_get_code’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2938:24: warning: implicit declaration of function ‘PyGen_GetCode’; did you mean ‘PyCode_GetCode’? [-Wimplicit-function-declaration]
2938 | return (PyObject *)PyGen_GetCode((PyGenObject *)gen);
| ^~~~~~~~~~~~~
| PyCode_GetCode
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:2938:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2938 | return (PyObject *)PyGen_GetCode((PyGenObject *)gen);
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘eval_eval_code_ex’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3010:14: warning: implicit declaration of function ‘PyEval_EvalCodeEx’; did you mean ‘PyEval_EvalCode’? [-Wimplicit-function-declaration]
3010 | result = PyEval_EvalCodeEx(
| ^~~~~~~~~~~~~~~~~
| PyEval_EvalCode
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3010:12: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3010 | result = PyEval_EvalCodeEx(
| ^
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘settrace_to_record’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3167:5: warning: implicit declaration of function ‘PyEval_SetTrace’; did you mean ‘PyEval_GetFrame’? [-Wimplicit-function-declaration]
3167 | PyEval_SetTrace(record_func, list);
| ^~~~~~~~~~~~~~~
| PyEval_GetFrame
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c: In function ‘clear_managed_dict’:
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c:3201:5: warning: implicit declaration of function ‘_PyObject_ClearManagedDict’ [-Wimplicit-function-declaration]
3201 | _PyObject_ClearManagedDict(obj);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------ Captured log call -------------------------------
INFO root:spawn.py:38 gcc -pthread -DNDEBUG -O2 -fPIC -fPIC -Wimplicit-function-declaration -O0 -g3 -I/build_dir/pypy-c-jit-linux-x86-64/build/include/pypy3.12 -c /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.c -o /build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_testcapimodule.o
______________________ test_expected_modules[ctypes.test] ______________________
modname = 'ctypes.test'
def test_expected_modules(modname):
> importlib.import_module(modname)
../build/extra_tests/test_pypy_modules.py:75:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'ctypes.test', import_ = <function _gcd_import at 0x00007fc351f6b520>
> ???
E ModuleNotFoundError: No module named 'ctypes.test'
<frozen importlib._bootstrap>:1324: ModuleNotFoundError
________________ test_compute_suggestion_name_error_from_global ________________
def test_compute_suggestion_name_error_from_global():
def f():
test_compute_suggestion_name_error_from_globl
try:
> f()
../build/extra_tests/test_traceback_suggestions.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def f():
> test_compute_suggestion_name_error_from_globl
E NameError: name 'test_compute_suggestion_name_error_from_globl' is not defined
../build/extra_tests/test_traceback_suggestions.py:93: NameError
During handling of the above exception, another exception occurred:
def test_compute_suggestion_name_error_from_global():
def f():
test_compute_suggestion_name_error_from_globl
try:
f()
except NameError as e:
> assert fmt(e) == "NameError: name 'test_compute_suggestion_name_error_from_globl' is not defined. Did you mean: 'test_compute_suggestion_name_error_from_global'?\n"
E assert 'NameError: n...not defined\n' == "NameError: n...om_global'?\n"
E Skipping 68 identical leading characters in diff, use -v to show
E - ot defined. Did you mean: 'test_compute_suggestion_name_error_from_global'?
E + ot defined
../build/extra_tests/test_traceback_suggestions.py:98: AssertionError
_____________________ TestZIntegration.test_infrastructure _____________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x000000000d9ae560>
def test_infrastructure(self):
> run_setup_and_program('infrastructure', '''
import snip_infrastructure
assert snip_infrastructure.func() == 42
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 334ms
creator PyPy3Posix(dest=/tmp/ffi-15/infrastructure-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/infrastructure-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
____________________ TestZIntegration.test_distutils_module ____________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x0000000009f79360>
def test_distutils_module(self):
> run_setup_and_program("distutils_module", '''
import snip_basic_verify
p = snip_basic_verify.C.getpwuid(0)
assert snip_basic_verify.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/distutils_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/distutils_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/distutils_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 155ms
creator PyPy3Posix(dest=/tmp/ffi-15/distutils_module-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/distutils_module-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
__________________ TestZIntegration.test_distutils_package_1 ___________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x00007fc34a6c0ec8>
def test_distutils_package_1(self):
> run_setup_and_program("distutils_package_1", '''
import snip_basic_verify1
p = snip_basic_verify1.C.getpwuid(0)
assert snip_basic_verify1.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/distutils_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/distutils_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/distutils_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 153ms
creator PyPy3Posix(dest=/tmp/ffi-15/distutils_package_1-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/distutils_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
__________________ TestZIntegration.test_distutils_package_2 ___________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x0000000010481ef8>
def test_distutils_package_2(self):
> run_setup_and_program("distutils_package_2", '''
import snip_basic_verify2
p = snip_basic_verify2.C.getpwuid(0)
assert snip_basic_verify2.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/distutils_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/distutils_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/distutils_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 154ms
creator PyPy3Posix(dest=/tmp/ffi-15/distutils_package_2-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/distutils_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
___________________ TestZIntegration.test_setuptools_module ____________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x000000000f60e678>
def test_setuptools_module(self):
> run_setup_and_program("setuptools_module", '''
import snip_setuptools_verify
p = snip_setuptools_verify.C.getpwuid(0)
assert snip_setuptools_verify.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:157:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/setuptools_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/setuptools_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/setuptools_module-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 153ms
creator PyPy3Posix(dest=/tmp/ffi-15/setuptools_module-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/setuptools_module-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
__________________ TestZIntegration.test_setuptools_package_1 __________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x000000000e30e058>
def test_setuptools_package_1(self):
> run_setup_and_program("setuptools_package_1", '''
import snip_setuptools_verify1
p = snip_setuptools_verify1.C.getpwuid(0)
assert snip_setuptools_verify1.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:164:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/setuptools_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/setuptools_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/setuptools_package_1-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 154ms
creator PyPy3Posix(dest=/tmp/ffi-15/setuptools_package_1-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/setuptools_package_1-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
__________________ TestZIntegration.test_setuptools_package_2 __________________
self = <extra_tests.cffi_tests.cffi0.test_zintegration.TestZIntegration object at 0x000000000ca64cd0>
def test_setuptools_package_2(self):
> run_setup_and_program("setuptools_package_2", '''
import snip_setuptools_verify2
p = snip_setuptools_verify2.C.getpwuid(0)
assert snip_setuptools_verify2.ffi.string(p.pw_name) == b"root"
''')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:109: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py:31: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/tmp/ffi-15/setuptools_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-15/setuptools_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', ...]
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 subprocess.CalledProcessError: Command '['/tmp/ffi-15/setuptools_package_2-cpy/bin/python', '-m', 'pip', 'install', 'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.
../build/lib-python/3/subprocess.py:413: CalledProcessError
----------------------------- Captured stdout call -----------------------------
created virtual environment PyPy3.12.13.final.0-64 in 154ms
creator PyPy3Posix(dest=/tmp/ffi-15/setuptools_package_2-cpy, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/buildslave/.local/share/virtualenv)
added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "<frozen importlib._bootstrap>", line 1415, in _handle_fromlist
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/configuration.py", line 26, in <module>
from pip._internal.utils.logging import getLogger
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/utils/misc.py", line 42, in <module>
from pip._internal.locations import get_major_minor_version
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/__init__.py", line 14, in <module>
from . import _distutils, _sysconfig
File "/tmp/ffi-15/setuptools_package_2-cpy/lib/pypy3.12/site-packages/pip/_internal/locations/_distutils.py", line 9, in <module>
from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils'
______________________ test_sys_tracebacklimit_is_correct ______________________
def test_sys_tracebacklimit_is_correct():
with start_repl() as child:
child.sendline("def x1(): 1/0")
child.sendline("def x2(): x1()")
child.sendline("def x3(): x2()")
child.sendline("x3()")
child.expect('Traceback.*File.*in x3.*File.*in x2.*File.*in x1.*1/0.*ZeroDivisionError: division by zero')
child.sendline("import sys")
child.sendline("sys.tracebacklimit=1")
child.sendline("x3()")
child.expect('Traceback(.*)ZeroDivisionError: division by zero')
> assert "x3" not in child.match.group(1)
E AssertionError: assert 'x3' not in ' (most rece... x3()\r\n'
E 'x3' is contained here:
E ule>
E x3()
E ? ++
../build/extra_tests/test_pyrepl/test_functional.py:72: AssertionError
----------------------------- Captured stdout call -----------------------------
def x1(): 1/0
def x2(): x1()
def x3(): x2()
x3()
Python 3.12.13 (f591fa0fd4db, Jul 06 2026, 20:11:58)
[PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
def x1(): 1/0
And now for something completely different: ``I might, but nobody respects me''
[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@d[1@e[1@f[1@ [1@x[1@1[1@([1@)[1@:[1@ [1@1[1@/[1@0[18D
[?2004l[?1l>[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@d[1@e[1@f[1@ [1@x[1@2[1@([1@)[1@:[1@ [1@x[1@1[1@([1@)[19D
[?2004l[?1l>[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@d[1@e[1@f[1@ [1@x[1@3[1@([1@)[1@:[1@ [1@x[1@2[1@([1@)[19D
[?2004l[?1l>[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@x[1@3[1@([1@)[9D
[?2004l[?1l>Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
x3()
File "<python-input-2>", line 1, in x3
def x3(): x2()
^^^^
File "<python-input-1>", line 1, in x2
def x2(): x1()
^^^^
File "<python-input-0>", line 1, in x1
def x1(): 1/0
~^~
ZeroDivisionError: division by zero
import sys
sys.tracebacklimit=1
x3()
[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@i[1@m[1@p[1@o[1@r[1@t[1@ [1@s[1@y[1@s[15D
[?2004l[?1l>[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@s[1@y[1@s[1@.[1@t[1@r[1@a[1@c[1@e[1@b[1@a[1@c[1@k[1@l[1@i[1@m[1@i[1@t[1@=[1@1[25D
[?2004l[?1l>[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@x[1@3[1@([1@)[9D
[?2004l[?1l>Traceback (most recent call last):
File "<python-input-6>", line 1, in <module>
x3()
ZeroDivisionError: division by zero
____________________________ test_hyperlinks_error _____________________________
def test_hyperlinks_error():
with start_repl(colors=True) as child:
child.sendline("import traceback; list(traceback.walk_tb(1))")
import socket
import traceback
> child.expect(f"\x1b]8;;file://{traceback.__file__}\x1b.{traceback.__file__}\x1b]8;;\x1b.")
../build/extra_tests/test_pyrepl/test_functional.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pypy-venv/lib/pypy3.12/site-packages/pexpect/spawnbase.py:354: in expect
return self.expect_list(compiled_pattern_list,
pypy-venv/lib/pypy3.12/site-packages/pexpect/spawnbase.py:383: in expect_list
return exp.expect_loop(timeout)
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x00000000146971d8>
err = TIMEOUT('Timeout exceeded.')
def timeout(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn.after = TIMEOUT
index = self.searcher.timeout_index
if index >= 0:
spawn.match = TIMEOUT
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = TIMEOUT(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.TIMEOUT: Timeout exceeded.
E <pexpect.pty_spawn.spawn object at 0x0000000014696b80>
E command: /build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/bin/pypy3
E args: [b'/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): "' object has no attribute 'tb_frame'\r\n\x1b[?2004h\x1b[?1h\x1b=\x1b[?25l\x1b[1A\n\x1b[1;35m>>>> \x1b[0m\x1b[5D\x1b[?12l\x1b[?25h\x1b[5C"
E before (last 100 chars): "' object has no attribute 'tb_frame'\r\n\x1b[?2004h\x1b[?1h\x1b=\x1b[?25l\x1b[1A\n\x1b[1;35m>>>> \x1b[0m\x1b[5D\x1b[?12l\x1b[?25h\x1b[5C"
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 3680554
E child_fd: 29
E closed: False
E timeout: 10
E delimiter: <class 'pexpect.exceptions.EOF'>
E logfile: <_io.TextIOWrapper name="<_io.FileIO name=7 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
E logfile_read: None
E logfile_send: None
E maxread: 2000
E ignorecase: False
E searchwindowsize: None
E delaybeforesend: 0.05
E delayafterclose: 0.1
E delayafterterminate: 0.1
E searcher: searcher_re:
E 0: re.compile('\x1b]8;;file:///build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/traceback.py\x1b./build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/traceback.py\x1b]8;;\x1b.')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
import traceback; list(traceback.walk_tb(1))
Python 3.12.13 (f591fa0fd4db, Jul 06 2026, 20:11:58)
[PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import traceback; list(traceback.walk_tb(1))
And now for something completely different: ``I might, but nobody respects me''
[?2004h[?1h=[?25l[1A
>>>> [5D[?12l[?25h[5C[?25l[5D>>>> i[6D[?12l[?25h[6C[?25l[6D>>>> im[7D[?12l[?25h[7C[?25l[7D>>>> imp[8D[?12l[?25h[8C[?25l[8D>>>> impo[9D[?12l[?25h[9C[?25l[9D>>>> impor[10D[?12l[?25h[10C[?25l[10D>>>> import[11D[?12l[?25h[11C[?25l[11D>>>> import [12D[?12l[?25h[12C[?25l[12D>>>> import t[13D[?12l[?25h[13C[?25l[13D>>>> import tr[14D[?12l[?25h[14C[?25l[14D>>>> import tra[15D[?12l[?25h[15C[?25l[15D>>>> import trac[16D[?12l[?25h[16C[?25l[16D>>>> import trace[17D[?12l[?25h[17C[?25l[17D>>>> import traceb[18D[?12l[?25h[18C[?25l[18D>>>> import traceba[19D[?12l[?25h[19C[?25l[19D>>>> import tracebac[20D[?12l[?25h[20C[?25l[20D>>>> import traceback[21D[?12l[?25h[21C[?25l[21D>>>> import traceback;[22D[?12l[?25h[22C[?25l[22D>>>> import traceback; [23D[?12l[?25h[23C[?25l[23D>>>> import traceback; l[24D[?12l[?25h[24C[?25l[24D>>>> import traceback; li[25D[?12l[?25h[25C[?25l[25D>>>> import traceback; lis[26D[?12l[?25h[26C[?25l[26D>>>> import traceback; list[27D[?12l[?25h[27C[?25l[27D>>>> import traceback; list([28D[?12l[?25h[28C[?25l[28D>>>> import traceback; list(t[29D[?12l[?25h[29C[?25l[29D>>>> import traceback; list(tr[30D[?12l[?25h[30C[?25l[30D>>>> import traceback; list(tra[31D[?12l[?25h[31C[?25l[31D>>>> import traceback; list(trac[32D[?12l[?25h[32C[?25l[32D>>>> import traceback; list(trace[33D[?12l[?25h[33C[?25l[33D>>>> import traceback; list(traceb[34D[?12l[?25h[34C[?25l[34D>>>> import traceback; list(traceba[35D[?12l[?25h[35C[?25l[35D>>>> import traceback; list(tracebac[36D[?12l[?25h[36C[?25l[36D>>>> import traceback; list(traceback[37D[?12l[?25h[37C[?25l[37D>>>> import traceback; list(traceback.[38D[?12l[?25h[38C[?25l[38D>>>> import traceback; list(traceback.w[39D[?12l[?25h[39C[?25l[39D>>>> import traceback; list(traceback.wa[40D[?12l[?25h[40C[?25l[40D>>>> import traceback; list(traceback.wal[41D[?12l[?25h[41C[?25l[41D>>>> import traceback; list(traceback.walk[42D[?12l[?25h[42C[?25l[42D>>>> import traceback; list(traceback.walk_[43D[?12l[?25h[43C[?25l[43D>>>> import traceback; list(traceback.walk_t[44D[?12l[?25h[44C[?25l[44D>>>> import traceback; list(traceback.walk_tb[45D[?12l[?25h[45C[?25l[45D>>>> import traceback; list(traceback.walk_tb([46D[?12l[?25h[46C[?25l[46D>>>> import traceback; list(traceback.walk_tb(1[47D[?12l[?25h[47C[?25l[47D>>>> import traceback; list(traceback.walk_tb(1)[48D[?12l[?25h[48C[?25l[48D>>>> import traceback; list(traceback.walk_tb(1))[49D[?12l[?25h[49C[49D
[?2004l[?1l>Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import traceback; list(traceback.walk_tb(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/traceback.py", line 347, in walk_tb
yield tb.tb_frame, tb.tb_lineno
^^^^^^^^
AttributeError: 'int' object has no attribute 'tb_frame'
[?2004h[?1h=[?25l[1A
>>>> [5D[?12l[?25h[5C
_______________ test_syntaxerror_correct_filename_and_positions ________________
def test_syntaxerror_correct_filename_and_positions():
with start_repl(colors=False) as child:
child.sendline('a bbbb c')
> child.expect(' File "<python-input-0>", line 1')
../build/extra_tests/test_pyrepl/test_functional.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pypy-venv/lib/pypy3.12/site-packages/pexpect/spawnbase.py:354: in expect
return self.expect_list(compiled_pattern_list,
pypy-venv/lib/pypy3.12/site-packages/pexpect/spawnbase.py:383: in expect_list
return exp.expect_loop(timeout)
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:179: in expect_loop
return self.eof(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x000000001174e678>
err = EOF('End Of File (EOF). Exception style platform.')
def eof(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn._buffer = spawn.buffer_type()
spawn._before = spawn.buffer_type()
spawn.after = EOF
index = self.searcher.eof_index
if index >= 0:
spawn.match = EOF
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = EOF(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
E <pexpect.pty_spawn.spawn object at 0x0000000011a23a60>
E command: /build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/bin/pypy3
E args: [b'/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): ''
E before (last 100 chars): ")\r\nTypeError: InteractiveInterpreter.showsyntaxerror() got an unexpected keyword argument 'source'\r\n"
E after: <class 'pexpect.exceptions.EOF'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: True
E pid: 3680559
E child_fd: 30
E closed: False
E timeout: 10
E delimiter: <class 'pexpect.exceptions.EOF'>
E logfile: <_io.TextIOWrapper name="<_io.FileIO name=7 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
E logfile_read: None
E logfile_send: None
E maxread: 2000
E ignorecase: False
E searchwindowsize: None
E delaybeforesend: 0.05
E delayafterclose: 0.1
E delayafterterminate: 0.1
E searcher: searcher_re:
E 0: re.compile(' File "<python-input-0>", line 1')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:122: EOF
----------------------------- Captured stdout call -----------------------------
a bbbb c
Python 3.12.13 (f591fa0fd4db, Jul 06 2026, 20:11:58)
[PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
a bbbb c
And now for something completely different: ``do you know about a toaster with
8KB of RAM and 64KB of ROM?''
[?2004h[?1h=[?25l[1A
>>>> [?12l[?25h[1@a[1@ [1@b[1@b[1@b[1@b[1@ [1@c[13D
[?2004l[?1l>Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/console.py", line 209, in runsource
tree = ast.parse(source)
^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ast.py", line 52, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<unknown>", line 1
a bbbb c
^^^^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_pypy_interact.py", line 46, in interactive_console
run_interactive(mainmodule)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/main.py", line 60, in interactive_console
run_multiline_interactive_console(console)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/simple_interact.py", line 164, in run_multiline_interactive_console
more = console.push(_strip_final_indent(statement), filename=input_name, _symbol="single") # type: ignore[call-arg]
^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/console.py", line 187, in push
more = self.runsource(source, filename, symbol=_symbol)
^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/console.py", line 211, in runsource
self.showsyntaxerror(filename, source=source)
^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/pyrepl/console.py", line 193, in showsyntaxerror
super().showsyntaxerror(filename=filename, **kwargs)
TypeError: InteractiveInterpreter.showsyntaxerror() got an unexpected keyword argument 'source'
=============================== warnings summary ===============================
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:958: 10176 warnings
test_bufferedreader.py: 2 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:958: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:961: 10175 warnings
test_bufferedreader.py: 2 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:961: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expr = ast.IfExp(test, self.display(name), ast.Str(name.id))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:1071: 5778 warnings
test_bufferedreader.py: 1 warning
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:1071: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
syms.append(ast.Str(sym))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:1073: 5778 warnings
test_bufferedreader.py: 1 warning
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:1073: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expls.append(ast.Str(expl))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:823: 33745 warnings
test_bufferedreader.py: 4 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:823: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
keys = [ast.Str(key) for key in current.keys()]
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:933: 5932 warnings
test_bufferedreader.py: 1 warning
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:933: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
assertmsg = ast.Str("")
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:935: 5963 warnings
test_bufferedreader.py: 1 warning
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:935: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:947: 5950 warnings
test_bufferedreader.py: 1 warning
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:947: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead
clear = ast.Assign(variables, ast.NameConstant(None))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:983: 127 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:983: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expl_format = self.pop_format_context(ast.Str(expl))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:995: 63 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:995: DeprecationWarning: ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead
expl_template = self.helper("_format_boolop", expl_list, ast.Num(is_or))
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689: 22 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
and isinstance(item.value, ast.Str)
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691: 22 warnings
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
doc = item.value.s
../build/extra_tests/test_datetime.py:43
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:43: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datetime.datetime.utcnow(),
test_asyncio.py::test_async_gil_issue
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_asyncio.py:11: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:92: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).microsecond == 999999
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:93: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).second == 0
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:95: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).microsecond == 999999
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:96: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).second == 0
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:98: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).microsecond == 0
test_datetime.py::test_datetime_rounding
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:99: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
assert datetime.datetime.utcfromtimestamp(a).second == 1
test_datetime.py: 17 warnings
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:122: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
dt = datetime.datetime.utcfromtimestamp(t)
test_datetime.py: 100 warnings
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:140: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
delta = (datetime.datetime.utcfromtimestamp(now) -
test_datetime.py::test_utcfromtimestamp_microsecond
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:151: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
dt = datetime.datetime.utcfromtimestamp(0)
test_datetime.py::test_utcnow_microsecond
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:226: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
dt = datetime.datetime.utcnow()
test_datetime.py::test_future_types_newint
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:273: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
dtu_from_int = datetime.datetime.utcfromtimestamp(1431216000)
test_datetime.py::test_future_types_newint
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/test_datetime.py:274: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).
dtu_from_newint = datetime.datetime.utcfromtimestamp(newint(1431216000))
test_pypy_modules.py::test_expected_modules[crypt]
/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/importlib/__init__.py:90: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
return _bootstrap._gcd_import(name[level:], package, level)
cffi_tests/test_c.py::test_callback_return_type
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function test_callback_return_type.<locals>.cb at 0x00000000157d6408>, trying to convert the result back to C:: None
OverflowError: long too big to convert
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/test_c.py::test_callback_returning_wchar_t
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function test_callback_returning_wchar_t.<locals>.cb at 0x0000000014763c40>:: None
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/test_c.py", line 1723, in cb
raise ValueError
ValueError
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/test_c.py::test_cast_with_functionptr
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/test_c.py:2141: UserWarning: implicit cast from 'char *' to 'void(*)()' will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
newp(BStructPtr, [cast(BCharP, 0)])
cffi_tests/cffi0/test_ffi_backend.py::TestFFI::test_callback_crash
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function BackendTests.test_callback_crash.<locals>.cb at 0x000000001295d600>:: None
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/cffi0/backend_tests.py", line 849, in cb
raise Exception
Exception
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi0/test_ffi_backend.py::TestFFI::test_callback_decorator
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function BackendTests.test_callback_decorator.<locals>.cb at 0x0000000011bbaef8>, trying to convert the result back to C:: None
OverflowError: int too large to convert to int
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi0/test_parsing.py::test_missing_newline_bug
/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/cffi/cparser.py:436: UserWarning: #pragma in cdef() are entirely ignored. They should be removed for now, otherwise your code might behave differently in a future version of CFFI if #pragma support gets added. Note that '#pragma pack' needs to be replaced with the 'packed' keyword argument to cdef().
warnings.warn(
cffi_tests/cffi1/test_ffi_obj.py::test_ffi_callback
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function test_ffi_callback.<locals>.<lambda> at 0x00000000156dc980>:: None
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/cffi1/test_ffi_obj.py", line 132, in <lambda>
assert ffi.callback("int(int)", lambda x: x + "", error=-66)(10) == -66
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported operand type(s) for +: 'int' and 'str'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi1/test_ffi_obj.py::test_ffi_callback_decorator
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function test_ffi_callback_decorator.<locals>.<lambda> at 0x00000000156dd6c8>:: None
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/cffi1/test_ffi_obj.py", line 138, in <lambda>
assert deco(lambda x: x + "")(10) == -66
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported operand type(s) for +: 'int' and 'str'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi1/test_new_ffi_1.py::TestNewFFI1::test_callback_crash
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function TestNewFFI1.test_callback_crash.<locals>.cb at 0x000000001109c598>:: None
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/cffi_tests/cffi1/test_new_ffi_1.py", line 864, in cb
raise Exception
Exception
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi1/test_new_ffi_1.py::TestNewFFI1::test_callback_decorator
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function TestNewFFI1.test_callback_decorator.<locals>.cb at 0x000000000fb22b10>, trying to convert the result back to C:: None
OverflowError: int too large to convert to int
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
cffi_tests/cffi1/test_recompiler.py::test_macro_var_callback
/build_dir/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored from cffi callback <function test_macro_var_callback.<locals>.get_my_value at 0x00007fc349ec41b0>, trying to convert the result back to C:: None
TypeError: initializer for ctype 'int *' must be a cdata pointer, not str
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
hpy_tests/test_dist_info.py::test_get_distribution
/build_dir/pypy-c-jit-linux-x86-64/build/extra_tests/hpy_tests/test_dist_info.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
-- Docs: https://docs.pytest.org/en/stable/warnings.html
---- generated xml file: /build_dir/pypy-c-jit-linux-x86-64/venv/extra.log -----
============================= slowest 20 durations =============================
16.62s call cffi_tests/cffi0/test_vgen.py::test_ffi_new_with_cycles
16.54s call cffi_tests/cffi0/test_verify.py::test_ffi_new_with_cycles
16.42s call cffi_tests/cffi1/test_verify1.py::test_ffi_new_with_cycles
15.82s call cffi_tests/cffi0/test_verify.py::test_ffi_gc_size_arg_2
15.72s call cffi_tests/cffi1/test_verify1.py::test_ffi_gc_size_arg_2
15.59s call cffi_tests/cffi0/test_vgen.py::test_ffi_gc_size_arg_2
11.27s call cffi_tests/cffi1/test_verify1.py::test_struct_float_vs_int
10.41s call test_pyrepl/test_functional.py::test_hyperlinks_error
10.22s call test_binop_overriding.py::test_binop_combinations_more_exhaustive
10.12s call test_bufferedreader.py::test_stateful[Stream]
8.02s call cffi_tests/cffi0/test_vgen.py::test_struct_float_vs_int
7.48s call cffi_tests/cffi0/test_verify.py::test_struct_float_vs_int
7.00s call test_venv.py::test_venv_of_venv
5.73s call cffi_tests/cffi0/test_vgen.py::test_ffi_gc_size_arg
5.73s call cffi_tests/cffi1/test_verify1.py::test_ffi_gc_size_arg
5.01s call test_asyncio.py::test_async_for
4.92s call cffi_tests/cffi0/test_verify.py::test_ffi_gc_size_arg
4.32s call test_pypy_remote_debug.py::test_disable_remote_debug
4.27s call test_bufferedreader.py::test_stateful[StreamCFFI]
3.63s call test_venv.py::test_multiprocessing
=========================== short test summary info ============================
SKIPPED [1] ../build/extra_tests/test_msvcrt.py:4: could not import 'msvcrt': The 'msvcrt' module is only available on Windows
SKIPPED [1] ../build/extra_tests/test_vmprof_greenlet.py:4: could not import 'vmprof': No module named 'vmprof'
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_parse_c_type.py:12: not available on pypy
SKIPPED [1] ../build/extra_tests/ctypes_tests/test_commethods.py:10: could not import 'skip_the_whole_module': No module named 'skip_the_whole_module'
SKIPPED [1] ../build/extra_tests/test_dis.py:14: PyPy does not really try to be compatible
SKIPPED [1] ../build/extra_tests/test_greenlet_thread.py:105: not implemented on PyPy
SKIPPED [1] ../build/extra_tests/test_greenlet_thread.py:127: not implemented on PyPy
SKIPPED [1] ../build/extra_tests/test_recursion.py:21: fails on py3.10, fills up the logs, and crashes the buildbot summary
SKIPPED [22] ../build/extra_tests/cffi_tests/test_c.py:23: _testunc() not available
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py: PyPy does not report a traceback
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py:2572: later
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py:3071: GetLastError(): only for Windows
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py: PyPy does not warn
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py:3777: not for pypy
SKIPPED [1] ../build/extra_tests/cffi_tests/test_c.py:4431: pypy's bytearray are never locked
SKIPPED [5] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:331: NotImplementedError: wchar_t
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1173: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1193: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1210: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1229: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1241: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1260: buffer() with ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1283: buffer() with ctypes backend
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1312: later?
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/backend_tests.py:1372: callback with '...'
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:16: ctypes backend: not supported: initializers for function pointers
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:20: ctypes backend: not supported: passing a list for a pointer argument
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:24: ctypes backend: not supported: passing a list for a pointer argument
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:28: ctypes backend: not supported: casting to array
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:31: ctypes backend: not supported: nested anonymous struct
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:34: ctypes backend: not supported: nested anonymous struct
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:37: ctypes backend: not supported: nested anonymous union
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:40: ctypes backend: not supported: nested anonymous union
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ctypes.py:44: ctypes backend: not supported in Python 3: CType
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_function.py:107: win32 only
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_function.py:440: Windows-only test
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_function.py:455: Windows-only test
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ffi_backend.py:285: condition: (sys.platform == 'darwin' and platform.machine() == 'arm64') or not platform.machine().startswith(('arm', 'aarch64'))
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ffi_backend.py:315: condition: (sys.platform == 'darwin' and platform.machine() == 'arm64') or not platform.machine().startswith(('arm', 'aarch64'))
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ffi_backend.py:367: condition: sys.platform != 'win32'
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:253: not supported with the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:310: ctypes limitation on pypy
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:334: FILE not supported with the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:373: not supported by the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:383: not supported by the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:417: seems to fail with the ctypes backend on windows
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:533: not with the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_function.py:551: the ctypes backend doesn't support this
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:208: XXX errno issue with ctypes on pypy?
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:231: not supported by the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:243: not supported by the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:342: not implemented with the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:360: not implemented with the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:375: fails with the ctypes backend on some architectures
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:401: not for the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_ownlib.py:425: not working on win32 on the ctypes backend
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi0/test_parsing.py:410: Only for Windows
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:296: not implemented in verify(): complex types
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:416: XXX test or fully prevent char16_t and char32_t from working in ffi.verify() mode
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:455: ignored so far
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:2160: win32-only test
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:2237: win32-only test
SKIPPED [5] ../build/extra_tests/cffi_tests/cffi0/test_version.py:9: this is embedded version
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_cffi_binary.py:9: _cffi_backend module is built-in
SKIPPED [2] ../build/extra_tests/cffi_tests/cffi1/test_commontypes.py:12: cannot find ../c/commontypes.c
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_ffi_obj.py:337: for windows
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_function_args.py:15: this test is skipped because it keeps finding failures in libffi, instead of cffi
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_new_ffi_1.py:1269: later?
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_new_ffi_1.py:1325: callback with '...'
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_recompiler.py:751: for python 2.x
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_recompiler.py:2018: can currently declare a function with an opaque struct as argument, but AFAICT it's impossible to call it later
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_recompiler.py:2085: only for MSVC
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:418: ignored so far
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:1404: not available
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:2106: win32-only test
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:2182: win32-only test
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:2256: Windows only
SKIPPED [1] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:2306: Windows only
SKIPPED [16] ../build/extra_tests/cffi_tests/embedding/test_basic.py:26: LinkError: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
SKIPPED [1] ../build/extra_tests/ctypes_tests/test_win32.py:7: condition: sys.platform != 'win32'
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpyfield.py:111: CPython only
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpyfield.py:131: CPython only
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpyfield.py:254: CPython only
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpyfield.py:278: CPython only
SKIPPED [4] ../build/extra_tests/hpy_tests/_vendored/test_hpytype.py:532: Skipped
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpytype_legacy.py:42: seems to cause segfault later in testing?
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpytype_legacy.py:85: seems to cause segfault later in testing?
SKIPPED [2] ../build/extra_tests/hpy_tests/_vendored/test_hpytype_legacy.py:120: seems to cause segfault later in testing?
SKIPPED [1] ../build/extra_tests/hpy_tests/_vendored/debug/test_handles_invalid.py:37: Cannot recover from use-after-close on pypy
SKIPPED [1] ../build/extra_tests/hpy_tests/_vendored/debug/test_handles_invalid.py:111: It's impossible to recover from use-after-close on pypy
SKIPPED [1] ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py:297: cpython only
XFAIL ../build/extra_tests/cffi_tests/cffi1/test_verify1.py::test_callback_in_thread
reason: adapt or remove
XFAIL ../build/extra_tests/cffi_tests/cffi1/test_verify1.py::test_keepalive_lib
reason: adapt or remove
XFAIL ../build/extra_tests/cffi_tests/cffi1/test_verify1.py::test_keepalive_ffi
reason: adapt or remove
XFAIL ../build/extra_tests/cffi_tests/cffi1/test_verify1.py::test_bad_global_array_with_dotdotdot_length
reason: was detected only because 23 bytes cannot be divided by 4; redo more generally
XFAIL ../build/extra_tests/ctypes_tests/test_functions.py::test_warnings
warnings are disabled
XFAIL ../build/extra_tests/ctypes_tests/test_functions.py::test_errcheck
XFAIL ../build/extra_tests/ctypes_tests/test_numbers.py::test_no_missing_shape_to_ffi_type
XFAIL ../build/extra_tests/test_pyrepl/test_bugs.py::test_transpose_at_start
reason: [NOTRUN] event missing
XPASS ../build/extra_tests/ctypes_tests/test_numbers.py::test_pointer_to_long_double
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_cpymod_setup_install
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_cpymod_with_empty_hpy_ext_modules_setup_install
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_py_stub
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_build_platlib
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_build_ext_inplace[hybrid]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_build_ext_inplace[universal]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_setup_install[hybrid]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_setup_install[universal]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_wheel[hybrid]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_wheel[universal]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_legacy[hybrid]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_legacy[universal]
ERROR ../build/extra_tests/hpy_tests/_vendored/hpy_devel/test_distutils.py::TestDistutils::test_hpymod_legacy_fails_with_universal
FAILED ../build/extra_tests/test_capi.py::test_get_hashed_dir - distutils.err...
FAILED ../build/extra_tests/test_datetime.py::test_raises_if_passed_naive_datetime_and_start_or_end_time_defined
FAILED ../build/extra_tests/test_datetime.py::test_return_types - AssertionEr...
FAILED ../build/extra_tests/test_datetime.py::test_subclass_date - TypeError:...
FAILED ../build/extra_tests/test_datetime.py::test_subclass_time - TypeError:...
FAILED ../build/extra_tests/test_datetime.py::test_subclass_datetime - TypeEr...
FAILED ../build/extra_tests/test_functools.py::test_partial_stack - assert False
FAILED ../build/extra_tests/test_functools.py::test_lru_cache_stack - assert ...
FAILED ../build/extra_tests/test_heapq.py::test_check_linked_tournament_tree_in_place
FAILED ../build/extra_tests/test_inspect.py::test_object_new_signature - Asse...
FAILED ../build/extra_tests/test_inspect.py::test_signature_builtin_types - V...
FAILED ../build/extra_tests/test_inspect.py::test_cpyext_fails - distutils.er...
FAILED ../build/extra_tests/test_pypy_modules.py::test_expected_modules[ctypes.test]
FAILED ../build/extra_tests/test_traceback_suggestions.py::test_compute_suggestion_name_error_from_global
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_infrastructure
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_module
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_1
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_2
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_module
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_1
FAILED ../build/extra_tests/cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_2
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_sys_tracebacklimit_is_correct
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_hyperlinks_error
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_syntaxerror_correct_filename_and_positions
= 24 failed, 3002 passed, 156 skipped, 8 xfailed, 1 xpassed, 83886 warnings, 13 errors in 571.95s (0:09:31) =
n: 3
Arg 0: 13
Arg 1: 38
Arg 2: 100
n: 2
Arg 0: 13
Arg 1: 38
program finished with exit code 1
elapsedTime=572.446306