pypy-venv/bin/pypy3 -m pytest ../build/extra_tests --junitxml=extra.log --durations=20 -raw -n 0
in dir /buildbot/slave/pypy-c-jit-linux-x86-32/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=i686
AUDITWHEEL_PLAT=manylinux_2_28_i686
AUDITWHEEL_POLICY=manylinux_2_28
DEVTOOLSET_ROOTPATH=/opt/rh/gcc-toolset-14/root
HGDEMANDIMPORT=disable
HOME=/home/buildworker
HOSTNAME=Debian-trixie-latest-amd64-base
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/usr/local/lib:/opt/rh/gcc-toolset-14/root/usr/lib64:/opt/rh/gcc-toolset-14/root/usr/lib:/opt/rh/gcc-toolset-14/root/usr/lib64/dyninst:/opt/rh/gcc-toolset-14/root/usr/lib/dyninst
OLDPWD=/buildbot/slave
PATH=/tmp/venv/bin:/opt/clang/bin:/opt/rh/gcc-toolset-14/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/pypy2.7-v7.3.22-linux64/bin
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
PS1=(venv)
PWD=/buildbot/slave/pypy-c-jit-linux-x86-32/venv
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
SHLVL=1
SSL_CERT_FILE=/opt/_internal/certs.pem
VIRTUAL_ENV=/tmp/venv
container=podman
using PTY: False
============================= test session starts ==============================
platform linux -- Python 3.12.13[pypy-8.0.0-alpha], pytest-6.2.5, py-1.11.0, pluggy-1.6.0
rootdir: /buildbot/slave/pypy-c-jit-linux-x86-32/build/extra_tests, configfile: pytest.ini
plugins: xdist-3.5.0, hypothesis-6.36.2
collected 2388 items / 4 skipped / 2384 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 . [ 1%]
../build/extra_tests/test_code.py . [ 1%]
../build/extra_tests/test_collections.py .. [ 1%]
../build/extra_tests/test_complexobject.py . [ 1%]
../build/extra_tests/test_contextvars.py . [ 1%]
../build/extra_tests/test_datetime.py .................................. [ 2%]
. [ 2%]
../build/extra_tests/test_dbm.py ........ [ 3%]
../build/extra_tests/test_decimal.py ........... [ 3%]
../build/extra_tests/test_dis.py s [ 3%]
../build/extra_tests/test_functools.py FF [ 3%]
../build/extra_tests/test_gc.py ... [ 3%]
../build/extra_tests/test_gdbm.py ... [ 3%]
../build/extra_tests/test_generic_alias.py ............................. [ 5%]
............. [ 5%]
../build/extra_tests/test_greenlet_contextvars.py .......... [ 6%]
../build/extra_tests/test_greenlet_thread.py .....ss [ 6%]
../build/extra_tests/test_greenlet_tracing.py .. [ 6%]
../build/extra_tests/test_grp.py ... [ 6%]
../build/extra_tests/test_hashlib.py ... [ 6%]
../build/extra_tests/test_heapq.py ..F [ 6%]
../build/extra_tests/test_immutables_map.py ............................ [ 7%]
............................. [ 9%]
../build/extra_tests/test_import.py . [ 9%]
../build/extra_tests/test_inspect.py .... [ 9%]
../build/extra_tests/test_interpreter.py . [ 9%]
../build/extra_tests/test_itertools.py ... [ 9%]
../build/extra_tests/test_jit.py ... [ 9%]
../build/extra_tests/test_json.py ..... [ 9%]
../build/extra_tests/test_linecache.py . [ 9%]
../build/extra_tests/test_lzma.py . [ 9%]
../build/extra_tests/test_modules.py . [ 10%]
../build/extra_tests/test_os.py ......... [ 10%]
../build/extra_tests/test_posix.py ..... [ 10%]
../build/extra_tests/test_posix_extra.py . [ 10%]
../build/extra_tests/test_pyexpat.py . [ 10%]
../build/extra_tests/test_pypy_modules.py .............................. [ 11%]
[ 11%]
../build/extra_tests/test_pypy_remote_debug.py ................. [ 12%]
../build/extra_tests/test_pypy_util_cffi.py . [ 12%]
../build/extra_tests/test_recursion.py s [ 12%]
../build/extra_tests/test_scandir.py ................... [ 13%]
../build/extra_tests/test_semlock.py . [ 13%]
../build/extra_tests/test_sqlite3.py ................................... [ 15%]
..................................... [ 16%]
../build/extra_tests/test_ssl.py . [ 16%]
../build/extra_tests/test_startup.py ... [ 16%]
../build/extra_tests/test_stringio.py ... [ 16%]
../build/extra_tests/test_structseq.py ...... [ 17%]
../build/extra_tests/test_sysconfig.py . [ 17%]
../build/extra_tests/test_syslog.py . [ 17%]
../build/extra_tests/test_textio.py . [ 17%]
../build/extra_tests/test_tk.py . [ 17%]
../build/extra_tests/test_traceback_suggestions.py .........F.. [ 17%]
../build/extra_tests/test_unicode.py .......................... [ 18%]
../build/extra_tests/test_venv.py .. [ 18%]
../build/extra_tests/test_weakref.py .. [ 19%]
../build/extra_tests/cffi_tests/test_c.py .............................. [ 20%]
............................sssssssssssssss.sss...s...s................. [ 23%]
....................s.............s......s..s....................s...... [ 26%]
............s..........s........................s...... [ 28%]
../build/extra_tests/cffi_tests/test_version.py .. [ 28%]
../build/extra_tests/cffi_tests/cffi0/test_cdata.py . [ 28%]
../build/extra_tests/cffi_tests/cffi0/test_ctypes.py ..................s [ 29%]
...............s.s.s.......s.........................sssssss..s..s...... [ 32%]
.......................................sssssssss [ 34%]
../build/extra_tests/cffi_tests/cffi0/test_ffi_backend.py .............. [ 35%]
.....................................................................s.. [ 38%]
.s....................................................................s. [ 41%]
....................ss...................s.s...s................... [ 44%]
../build/extra_tests/cffi_tests/cffi0/test_function.py ......s.......s.. [ 44%]
.s.s..ss..sss..ss [ 45%]
../build/extra_tests/cffi_tests/cffi0/test_model.py ............. [ 45%]
../build/extra_tests/cffi_tests/cffi0/test_ownlib.py .sss...sssss [ 46%]
../build/extra_tests/cffi_tests/cffi0/test_parsing.py .................. [ 47%]
.......s........... [ 48%]
../build/extra_tests/cffi_tests/cffi0/test_platform.py .... [ 48%]
../build/extra_tests/cffi_tests/cffi0/test_unicode_literals.py ......... [ 48%]
... [ 48%]
../build/extra_tests/cffi_tests/cffi0/test_verify.py ................... [ 49%]
s......s.....s.......................................................... [ 52%]
.......................................................s...s............ [ 55%]
ss.... [ 55%]
../build/extra_tests/cffi_tests/cffi0/test_version.py sssss [ 55%]
../build/extra_tests/cffi_tests/cffi0/test_vgen.py ...................s. [ 56%]
.....s.....s............................................................ [ 59%]
.....................................................s...s............ss [ 62%]
.... [ 63%]
../build/extra_tests/cffi_tests/cffi0/test_zdistutils.py ............... [ 63%]
....................... [ 64%]
../build/extra_tests/cffi_tests/cffi0/test_zintegration.py ........ [ 64%]
../build/extra_tests/cffi_tests/cffi1/test_cffi_binary.py s [ 65%]
../build/extra_tests/cffi_tests/cffi1/test_commontypes.py ss. [ 65%]
../build/extra_tests/cffi_tests/cffi1/test_dlopen.py ............... [ 65%]
../build/extra_tests/cffi_tests/cffi1/test_dlopen_unicode_literals.py .. [ 65%]
............. [ 66%]
../build/extra_tests/cffi_tests/cffi1/test_ffi_obj.py .................. [ 67%]
...........s............. [ 68%]
../build/extra_tests/cffi_tests/cffi1/test_function_args.py s [ 68%]
../build/extra_tests/cffi_tests/cffi1/test_new_ffi_1.py ................ [ 68%]
.................................................................s...s.. [ 71%]
.................................... [ 73%]
../build/extra_tests/cffi_tests/cffi1/test_pkgconfig.py ... [ 73%]
../build/extra_tests/cffi_tests/cffi1/test_re_python.py ................ [ 74%]
..... [ 74%]
../build/extra_tests/cffi_tests/cffi1/test_realize_c_type.py ......... [ 74%]
../build/extra_tests/cffi_tests/cffi1/test_recompiler.py ............... [ 75%]
..................................................s..................... [ 78%]
...............................................s.....s.................. [ 81%]
........ [ 81%]
../build/extra_tests/cffi_tests/cffi1/test_unicode_literals.py ....... [ 82%]
../build/extra_tests/cffi_tests/cffi1/test_verify1.py .................. [ 82%]
............s........................................................... [ 85%]
...............s.....xxx....x......................s...s....s...sss. [ 88%]
../build/extra_tests/cffi_tests/cffi1/test_zdist.py .................... [ 89%]
... [ 89%]
../build/extra_tests/cffi_tests/embedding/test_basic.py sssss [ 89%]
../build/extra_tests/cffi_tests/embedding/test_performance.py sssss [ 90%]
../build/extra_tests/cffi_tests/embedding/test_recursive.py s [ 90%]
../build/extra_tests/cffi_tests/embedding/test_thread.py ssss [ 90%]
../build/extra_tests/cffi_tests/embedding/test_tlocal.py s [ 90%]
../build/extra_tests/ctypes_tests/test_anon.py .. [ 90%]
../build/extra_tests/ctypes_tests/test_array.py ....... [ 90%]
../build/extra_tests/ctypes_tests/test_base.py ... [ 90%]
../build/extra_tests/ctypes_tests/test_bitfields.py ... [ 90%]
../build/extra_tests/ctypes_tests/test_buffers.py ..................... [ 91%]
../build/extra_tests/ctypes_tests/test_callback_traceback.py . [ 91%]
../build/extra_tests/ctypes_tests/test_callbacks.py .................... [ 92%]
.......... [ 93%]
../build/extra_tests/ctypes_tests/test_cast.py ..... [ 93%]
../build/extra_tests/ctypes_tests/test_errno.py . [ 93%]
../build/extra_tests/ctypes_tests/test_extra.py ............... [ 94%]
../build/extra_tests/ctypes_tests/test_funcptr.py . [ 94%]
../build/extra_tests/ctypes_tests/test_functions.py .............xx.F. [ 94%]
../build/extra_tests/ctypes_tests/test_guess_argtypes.py .. [ 94%]
../build/extra_tests/ctypes_tests/test_keepalive.py .................. [ 95%]
../build/extra_tests/ctypes_tests/test_loading.py . [ 95%]
../build/extra_tests/ctypes_tests/test_numbers.py ...............xX [ 96%]
../build/extra_tests/ctypes_tests/test_parameters.py .. [ 96%]
../build/extra_tests/ctypes_tests/test_pointers.py ..................... [ 97%]
[ 97%]
../build/extra_tests/ctypes_tests/test_prototypes.py ..... [ 97%]
../build/extra_tests/ctypes_tests/test_structures.py .................. [ 98%]
../build/extra_tests/ctypes_tests/test_unions.py .. [ 98%]
../build/extra_tests/ctypes_tests/test_values.py . [ 98%]
../build/extra_tests/ctypes_tests/test_win32.py s [ 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.FF.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 .FFF [100%]
=================================== FAILURES ===================================
______________________________ 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 '/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/heapq.py'>, '_MergeNode')
../build/extra_tests/test_heapq.py:45: AssertionError
________________ 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
________________________________ test_issue1655 ________________________________
dll = <[TypeError("unsupported operand type(s) for &: '_rawffi.alt.CDLL' and 'int'") raised in repr()] CDLL object at 0x10a92a10>
def test_issue1655(dll):
def ret_list_p(icount):
def sz_array_p(obj, func, args):
assert ('.LP_c_int object' in repr(obj) or
'.LP_c_long object' in repr(obj))
assert repr(args) =="(b'testing!', c_int(4))"
assert args[icount].value == 4
return [obj[i] for i in range(args[icount].value)]
return sz_array_p
get_data_prototype = CFUNCTYPE(POINTER(c_int),
c_char_p, POINTER(c_int))
get_data_paramflag = ((1,), (2,))
get_data_signature = ('test_issue1655', dll)
get_data = get_data_prototype(get_data_signature, get_data_paramflag)
assert get_data(b'testing!') == 4
get_data.errcheck = ret_list_p(1)
> assert get_data(b'testing!') == [-1, -2, -3, -4]
../build/extra_tests/ctypes_tests/test_functions.py:219:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/_ctypes/function.py:380: in __call__
result, forced = self._do_errcheck(result, errcheckargs)
../build/lib_pypy/_ctypes/function.py:424: in _do_errcheck
v = self._errcheck_(result, self, args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
obj = <_ctypes.pointer.LP_c_long object at 0x0b43d200>
func = <ctypes.CFUNCTYPE.<locals>.CFunctionType object at 0x0b43d240>
args = (b'testing!', c_long(4))
def sz_array_p(obj, func, args):
assert ('.LP_c_int object' in repr(obj) or
'.LP_c_long object' in repr(obj))
> assert repr(args) =="(b'testing!', c_int(4))"
E assert "(b'testing!', c_long(4))" == "(b'testing!', c_int(4))"
E - (b'testing!', c_int(4))
E ? ^ ^
E + (b'testing!', c_long(4))
E ? ^^ ^
../build/extra_tests/ctypes_tests/test_functions.py:205: AssertionError
__________________________________ test_error __________________________________
def test_error():
with start_repl() as child:
child.sendline('1/0')
> child.expect('Traceback.*File.*1/0.*ZeroDivisionError: division by zero')
../build/extra_tests/test_pyrepl/test_functional.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x1260e230>
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 0x10e99950>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): 'ecent call last):\r\n File "<stdin>", line 1, in <module>\r\nZeroDivisionError: division by zero\r\n>>>> '
E before (last 100 chars): 'ecent call last):\r\n File "<stdin>", line 1, in <module>\r\nZeroDivisionError: division by zero\r\n>>>> '
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75711
E child_fd: 28
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('Traceback.*File.*1/0.*ZeroDivisionError: division by zero')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
1/0
Python 3.12.13 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
1/0
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``running tests is essential for
developing pypy -- uh? did I break the test? (fijal)''
>>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
>>>>
__________________________ test_ctrl_left_ctrl_right ___________________________
def test_ctrl_left_ctrl_right():
with start_repl() as child:
child.send('abc 123456789')
child.send('\033[1;5D') # ctrl-left
child.send('=')
child.send('\033[1;5C') # ctrl-right
child.sendline('88888')
child.sendline('abc')
> child.expect('12345678988888')
../build/extra_tests/test_pyrepl/test_functional.py:49:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x12251cd0>
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 0x12251ad0>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): "\nNameError: name 'abc' is not defined. Did you mean: 'abs'? Or did you forget to import 'abc'\r\n>>>> "
E before (last 100 chars): "\nNameError: name 'abc' is not defined. Did you mean: 'abs'? Or did you forget to import 'abc'\r\n>>>> "
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75713
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('12345678988888')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
abc 123456789[1;5D=[1;5C88888
abc
Python 3.12.13 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
abc 123456789Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``we like complaints''
>>>> ^[[1;5D=^[[1;5C88888
File "<stdin>", line 1
abc 123456789[1;5D=[1;5C88888
^
SyntaxError: invalid non-printable character U+001B
>>>> abc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'abc' is not defined. Did you mean: 'abs'? Or did you forget to import 'abc'
>>>>
______________________ 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')
../build/extra_tests/test_pyrepl/test_functional.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x12651710>
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 0x1257fc30>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): '<stdin>", line 1, in x2\r\n File "<stdin>", line 1, in x1\r\nZeroDivisionError: division by zero\r\n>>>> '
E before (last 100 chars): '<stdin>", line 1, in x2\r\n File "<stdin>", line 1, in x1\r\nZeroDivisionError: division by zero\r\n>>>> '
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75717
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('Traceback.*File.*in x3.*File.*in x2.*File.*in x1.*1/0.*ZeroDivisionError: division by zero')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
def x1(): 1/0
def x2(): x1()
def x3(): x2()
x3()
Python 3.12.13 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
def x1(): 1/0
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``http://twitpic.com/52ae8f''
>>>> >>>> def x2(): x1()
>>>> def x3(): x2()
>>>> x3()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 1, in x3
File "<stdin>", line 1, in x2
File "<stdin>", line 1, in x1
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 0x128a60f0>
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 0x1284cef0>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): "tb.tb_lineno\r\n ^^^^^^^^\r\nAttributeError: 'int' object has no attribute 'tb_frame'\r\n>>>> "
E before (last 100 chars): "tb.tb_lineno\r\n ^^^^^^^^\r\nAttributeError: 'int' object has no attribute 'tb_frame'\r\n>>>> "
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75719
E child_fd: 31
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:///buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/traceback.py\x1b./buildbot/slave/pypy-c-jit-linux-x86-32/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 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import traceback; list(traceback.walk_tb(1))
Traceback (most recent call last):
File "]8;;file:///buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py\/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py]8;;\", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "]8;;file:///buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py\/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py]8;;\", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "]8;;file:///buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py\/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py]8;;\", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "]8;;file:///buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py\/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py]8;;\", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``<Alex_Gaynor> fijal: I just...
started coding and suddently... abomination''
>>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/traceback.py", line 396, in walk_tb
yield tb.tb_frame, tb.tb_lineno
^^^^^^^^
AttributeError: 'int' object has no attribute 'tb_frame'
>>>>
_______________ 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:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x1012dd90>
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 0x1012d230>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): 'ruit"\'\'\r\n>>>> File "<stdin>", line 1\r\n a bbbb c\r\n ^^^^\r\nSyntaxError: invalid syntax\r\n>>>> '
E before (last 100 chars): 'ruit"\'\'\r\n>>>> File "<stdin>", line 1\r\n a bbbb c\r\n ^^^^\r\nSyntaxError: invalid syntax\r\n>>>> '
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75723
E child_fd: 32
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:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
a bbbb c
Python 3.12.13 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
a bbbb c
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``"you underestimate the importance
of microarchitecture" "no, it's more that we are still happily in the land of
reachable fruit"''
>>>> File "<stdin>", line 1
a bbbb c
^^^^
SyntaxError: invalid syntax
>>>>
_____________ test_cmd_module_tab_completion_with_pyrepl_readline ______________
tmpdir = local('/tmp/pytest-of-buildworker/pytest-1/test_cmd_module_tab_completion0')
def test_cmd_module_tab_completion_with_pyrepl_readline(tmpdir):
fn = tmpdir / "cmdbug.py"
fn.write("""
import cmd
class Console(cmd.Cmd):
def do_abc(self, arg):
print("ABC!!!!", arg)
def do_exit(self, arg):
raise SystemExit(0)
def completedefault(self, text: str, line: str, begidx: int, endidx: int):
return ["foo", "bar"]
if __name__ == "__main__":
Console().cmdloop()
""")
child = spawn(
sys.executable,
[str(fn)],
env=os.environ,
timeout=2, encoding="utf-8")
try:
child.sendline("a\t def")
> child.expect("ABC!!!! def")
../build/extra_tests/test_pyrepl/test_functional.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0xf2293750>
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 0x0a7bdfb0>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3', b'/tmp/pytest-of-buildworker/pytest-1/test_cmd_module_tab_completion0/cmdbug.py']
E buffer (last 100 chars): 'a\t def\r\n(Cmd) *** Unknown syntax: a\t def\r\n(Cmd) '
E before (last 100 chars): 'a\t def\r\n(Cmd) *** Unknown syntax: a\t def\r\n(Cmd) '
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75725
E child_fd: 33
E closed: False
E timeout: 2
E delimiter: <class 'pexpect.exceptions.EOF'>
E logfile: None
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('ABC!!!! def')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
__________________________ test_tab_completion_works ___________________________
def test_tab_completion_works():
with start_repl(colors=False, explicit_pyrepl=False) as child:
child.sendline("import io")
child.sendline("io.Bloc\t)")
> child.expect("BlockingIOError()")
../build/extra_tests/test_pyrepl/test_functional.py:152:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x173808f0>
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 0x17380650>
E command: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3
E args: [b'/buildbot/slave/pypy-c-jit-linux-x86-32/venv/pypy-venv/bin/pypy3']
E buffer (last 100 chars): 'io.Bloc\t)\r\n File "<stdin>", line 1\r\n io.Bloc\t)\r\n \t^\r\nSyntaxError: unmatched \')\'\r\n>>>> '
E before (last 100 chars): 'io.Bloc\t)\r\n File "<stdin>", line 1\r\n io.Bloc\t)\r\n \t^\r\nSyntaxError: unmatched \')\'\r\n>>>> '
E after: <class 'pexpect.exceptions.TIMEOUT'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: False
E pid: 75731
E child_fd: 33
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('BlockingIOError()')
pypy-venv/lib/pypy3.12/site-packages/pexpect/expect.py:144: TIMEOUT
----------------------------- Captured stdout call -----------------------------
import io
io.Bloc )
Python 3.12.13 (eab40ed7f968, Jul 21 2026, 06:12:28)
[PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import io
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/site.py", line 561, in register_readline
if readline is None or readline.get_current_history_length() == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 543, in get_current_history_length
return len(self.get_reader().history)
^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/readline.py", line 452, in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib_pypy/pyrepl/unix_console.py", line 155, in __init__
curses.setupterm(term or None, self.output_fd)
^^^^^^^^^
_minimal_curses.error: setupterm(None, 1) failed (err=-1): could not find termininfo database
And now for something completely different: ``PyPy 2.0 beta1 released - better
late than never''
>>>> >>>> io.Bloc )
File "<stdin>", line 1
io.Bloc )
^
SyntaxError: unmatched ')'
>>>>
_________________________ test_get_line_buffer_is_str __________________________
def test_get_line_buffer_is_str():
from pyrepl import readline
> assert isinstance(readline.get_line_buffer(), str)
../build/extra_tests/test_pyrepl/test_readline.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/pyrepl/readline.py:616: in get_line_buffer
return self.get_reader().get_unicode()
../build/lib_pypy/pyrepl/readline.py:452: in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'UnixConsole' object has no attribute 'screen'") raised in repr()] UnixConsole object at 0x1f8fa9f0>
f_in = 12, f_out = 13, term = '', encoding = 'utf-8'
def __init__(
self,
f_in: IO[bytes] | int = 0,
f_out: IO[bytes] | int = 1,
term: str = "",
encoding: str = "",
):
"""
Initialize the UnixConsole.
Parameters:
- f_in (int or file-like object): Input file descriptor or object.
- f_out (int or file-like object): Output file descriptor or object.
- term (str): Terminal name.
- encoding (str): Encoding to use for I/O operations.
"""
super().__init__(f_in, f_out, term, encoding)
self.pollob = poll()
self.pollob.register(self.input_fd, select.POLLIN)
self.input_buffer = b""
self.input_buffer_pos = 0
> curses.setupterm(term or None, self.output_fd)
E _minimal_curses.error: setupterm(None, 13) failed (err=-1): could not find termininfo database
../build/lib_pypy/pyrepl/unix_console.py:155: error
____________________________ test_nonascii_history _____________________________
def test_nonascii_history():
import sys
import os
TESTFN = "{}_{}_tmp".format("@test", os.getpid())
is_editline = readline.__doc__ and "libedit" in readline.__doc__
> readline.clear_history()
../build/extra_tests/test_pyrepl/test_readline.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/pyrepl/readline.py:578: in clear_history
del self.get_reader().history[:]
../build/lib_pypy/pyrepl/readline.py:452: in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'UnixConsole' object has no attribute 'screen'") raised in repr()] UnixConsole object at 0x140a7110>
f_in = 12, f_out = 13, term = '', encoding = 'utf-8'
def __init__(
self,
f_in: IO[bytes] | int = 0,
f_out: IO[bytes] | int = 1,
term: str = "",
encoding: str = "",
):
"""
Initialize the UnixConsole.
Parameters:
- f_in (int or file-like object): Input file descriptor or object.
- f_out (int or file-like object): Output file descriptor or object.
- term (str): Terminal name.
- encoding (str): Encoding to use for I/O operations.
"""
super().__init__(f_in, f_out, term, encoding)
self.pollob = poll()
self.pollob.register(self.input_fd, select.POLLIN)
self.input_buffer = b""
self.input_buffer_pos = 0
> curses.setupterm(term or None, self.output_fd)
E _minimal_curses.error: setupterm(None, 13) failed (err=-1): could not find termininfo database
../build/lib_pypy/pyrepl/unix_console.py:155: error
_________________________ test_insert_text_leading_tab _________________________
def test_insert_text_leading_tab():
"""
A literal tab can be inserted at the beginning of a line.
See <https://bugs.python.org/issue25660>
"""
> readline.insert_text("\t")
../build/extra_tests/test_pyrepl/test_readline.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib_pypy/pyrepl/readline.py:634: in insert_text
self.get_reader().insert(text)
../build/lib_pypy/pyrepl/readline.py:452: in get_reader
console = Console(self.f_in, self.f_out, encoding=ENCODING)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'UnixConsole' object has no attribute 'screen'") raised in repr()] UnixConsole object at 0x13fbdf90>
f_in = 12, f_out = 13, term = '', encoding = 'utf-8'
def __init__(
self,
f_in: IO[bytes] | int = 0,
f_out: IO[bytes] | int = 1,
term: str = "",
encoding: str = "",
):
"""
Initialize the UnixConsole.
Parameters:
- f_in (int or file-like object): Input file descriptor or object.
- f_out (int or file-like object): Output file descriptor or object.
- term (str): Terminal name.
- encoding (str): Encoding to use for I/O operations.
"""
super().__init__(f_in, f_out, term, encoding)
self.pollob = poll()
self.pollob.register(self.input_fd, select.POLLIN)
self.input_buffer = b""
self.input_buffer_pos = 0
> curses.setupterm(term or None, self.output_fd)
E _minimal_curses.error: setupterm(None, 13) failed (err=-1): could not find termininfo database
../build/lib_pypy/pyrepl/unix_console.py:155: error
=============================== warnings summary ===============================
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:958: 8445 warnings
test_bufferedreader.py: 2 warnings
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 8444 warnings
test_bufferedreader.py: 2 warnings
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 4720 warnings
test_bufferedreader.py: 1 warning
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 4720 warnings
test_bufferedreader.py: 1 warning
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 27064 warnings
test_bufferedreader.py: 4 warnings
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 4796 warnings
test_bufferedreader.py: 1 warning
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 4808 warnings
test_bufferedreader.py: 1 warning
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 4801 warnings
test_bufferedreader.py: 1 warning
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 125 warnings
/buildbot/slave/pypy-c-jit-linux-x86-32/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: 62 warnings
/buildbot/slave/pypy-c-jit-linux-x86-32/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
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689
/buildbot/slave/pypy-c-jit-linux-x86-32/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
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:691
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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]
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x0febb5c0>, 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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x0ef4b4f0>:: None
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0xf37ef2e8>:: None
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x0b601f80>, 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
/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x10bbe420>:: None
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x10bbe5c0>:: None
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x12877968>:: None
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x1028f968>, 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
/buildbot/slave/pypy-c-jit-linux-x86-32/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 0x0f2dc760>, 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))
-- Docs: https://docs.pytest.org/en/stable/warnings.html
-- generated xml file: /buildbot/slave/pypy-c-jit-linux-x86-32/venv/extra.log --
============================= slowest 20 durations =============================
36.51s call cffi_tests/cffi0/test_vgen.py::test_ffi_new_with_cycles
36.42s call cffi_tests/cffi0/test_verify.py::test_ffi_new_with_cycles
36.13s call cffi_tests/cffi1/test_verify1.py::test_ffi_new_with_cycles
18.09s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_1
18.09s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_package_2
17.93s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_setuptools_module
17.92s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_1
17.92s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_package_2
17.92s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_distutils_module
17.11s call cffi_tests/cffi0/test_zintegration.py::TestZIntegration::test_infrastructure
13.07s call test_bufferedreader.py::test_stateful[Stream]
10.44s call test_pyrepl/test_functional.py::test_ctrl_left_ctrl_right
10.35s call test_pyrepl/test_functional.py::test_sys_tracebacklimit_is_correct
10.24s call test_pyrepl/test_functional.py::test_tab_completion_works
10.20s call test_pyrepl/test_functional.py::test_error
10.19s call test_pyrepl/test_functional.py::test_hyperlinks_error
10.19s call test_pyrepl/test_functional.py::test_syntaxerror_correct_filename_and_positions
10.03s call cffi_tests/cffi1/test_verify1.py::test_struct_float_vs_int
9.26s call test_binop_overriding.py::test_binop_combinations_more_exhaustive
7.52s call test_venv.py::test_venv_of_venv
=========================== 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 [4] ../build/extra_tests/cffi_tests/cffi0/test_verify.py:2505: only running the memory-intensive test on x86/x64
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 [2] ../build/extra_tests/cffi_tests/cffi1/test_verify1.py:2324: only running the memory-intensive test on x86/x64
SKIPPED [16] ../build/extra_tests/cffi_tests/embedding/test_basic.py:26: LinkError: command '/opt/rh/gcc-toolset-14/root/usr/bin/gcc' failed with exit code 1
SKIPPED [1] ../build/extra_tests/ctypes_tests/test_win32.py:7: condition: sys.platform != 'win32'
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
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_traceback_suggestions.py::test_compute_suggestion_name_error_from_global
FAILED ../build/extra_tests/ctypes_tests/test_functions.py::test_issue1655 - ...
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_error - pexp...
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_ctrl_left_ctrl_right
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
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_cmd_module_tab_completion_with_pyrepl_readline
FAILED ../build/extra_tests/test_pyrepl/test_functional.py::test_tab_completion_works
FAILED ../build/extra_tests/test_pyrepl/test_readline.py::test_get_line_buffer_is_str
FAILED ../build/extra_tests/test_pyrepl/test_readline.py::test_nonascii_history
FAILED ../build/extra_tests/test_pyrepl/test_readline.py::test_insert_text_leading_tab
= 15 failed, 2227 passed, 141 skipped, 8 xfailed, 1 xpassed, 68151 warnings in 576.74s (0:09:36) =
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=577.249866