pypy-venv/bin/pypy3 -m pytest -D ../build/pypy --junitxml=test-D.log
in dir /buildbot/slave/pypy-c-jit-linux-x86-64/venv (timeout 1200 secs)
watching logfiles {'pytestLog': 'test-D.log'}
argv: ['pypy-venv/bin/pypy3', '-m', 'pytest', '-D', '../build/pypy', '--junitxml=test-D.log']
environment:
AUDITWHEEL_ARCH=x86_64
AUDITWHEEL_PLAT=manylinux_2_28_x86_64
AUDITWHEEL_POLICY=manylinux_2_28
DEVTOOLSET_ROOTPATH=/opt/rh/gcc-toolset-14/root
HGDEMANDIMPORT=disable
HOME=/buildbot/slave
HOSTNAME=d6815180f551
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-64/venv
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
SHLVL=0
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
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
pytest-6.2.5 from /buildbot/slave/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/pytest/__init__.py
rootdir: /buildbot/slave/pypy-c-jit-linux-x86-64/build, configfile: pytest.ini
plugins: xdist-3.5.0, hypothesis-6.36.2
collected 2350 items
../build/pypy/interpreter/astcompiler/test/apptest_compiler.py ........ [ 0%]
../build/pypy/interpreter/astcompiler/test/apptest_exceptiongroup.py ... [ 0%]
...................... [ 1%]
../build/pypy/interpreter/astcompiler/test/apptest_fstring.py .......... [ 1%]
..................... [ 2%]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py FF..... [ 3%]
....F......FFFFF.FF.F....F.F..FF...F.FF...F.......F [ 5%]
../build/pypy/interpreter/astcompiler/test/apptest_misc.py ............. [ 5%]
.. [ 5%]
../build/pypy/interpreter/astcompiler/test/apptest_patma.py ............ [ 6%]
............................. [ 7%]
../build/pypy/interpreter/astcompiler/test/apptest_walrus_comprehension.py . [ 7%]
..... [ 7%]
../build/pypy/interpreter/pyparser/test/apptest_parsestring.py ...... [ 8%]
../build/pypy/interpreter/test/apptest_annotations.py .................. [ 8%]
........ [ 9%]
../build/pypy/interpreter/test/apptest_annotations_string.py ...... [ 9%]
../build/pypy/interpreter/test/apptest_buffer.py ...... [ 9%]
../build/pypy/interpreter/test/apptest_class.py ................ [ 10%]
../build/pypy/interpreter/test/apptest_coroutine.py .................... [ 11%]
..................................... [ 12%]
../build/pypy/interpreter/test/apptest_descrtypecheck.py .. [ 12%]
../build/pypy/interpreter/test/apptest_exceptions.py ........s.......... [ 13%]
....... [ 14%]
../build/pypy/interpreter/test/apptest_exctable_dis.py ......... [ 14%]
../build/pypy/interpreter/test/apptest_exec.py ......................... [ 15%]
[ 15%]
../build/pypy/interpreter/test/apptest_extcall.py ..... [ 15%]
../build/pypy/interpreter/test/apptest_function.py ..................... [ 16%]
................s..................................................... [ 19%]
../build/pypy/interpreter/test/apptest_generator.py .................... [ 20%]
............................................... [ 22%]
../build/pypy/interpreter/test/apptest_nestedscope.py .................. [ 23%]
[ 23%]
../build/pypy/interpreter/test/apptest_pep695.py ....................... [ 24%]
........ [ 24%]
../build/pypy/interpreter/test/apptest_pycode.py .... [ 24%]
../build/pypy/interpreter/test/apptest_pyframe.py ...................... [ 25%]
.......................................... [ 27%]
../build/pypy/interpreter/test/apptest_raise.py ........................ [ 28%]
............................... [ 29%]
../build/pypy/interpreter/test/apptest_settrace_jump.py . [ 29%]
../build/pypy/interpreter/test/apptest_syntax.py ....................... [ 30%]
............. [ 31%]
../build/pypy/interpreter/test/apptest_sys_settrace.py ................. [ 32%]
........................................................................ [ 35%]
..................................................... [ 37%]
../build/pypy/interpreter/test/apptest_traceback.py ........ [ 37%]
../build/pypy/interpreter/test/apptest_unraisable.py .... [ 37%]
../build/pypy/interpreter/test/apptest_with_leak.py ......... [ 38%]
../build/pypy/module/__builtin__/test/apptest_compile.py ............... [ 38%]
...... [ 39%]
../build/pypy/module/__builtin__/test/apptest_descriptor.py ..... [ 39%]
../build/pypy/module/__builtin__/test/apptest_operator.py ..... [ 39%]
../build/pypy/module/__builtin__/test/apptest_print.py ... [ 39%]
../build/pypy/module/__pypy__/test/apptest_picklebuffer.py ........ [ 40%]
../build/pypy/module/_abc/test/apptest_abc.py ... [ 40%]
../build/pypy/module/_ast/test/apptest_ast.py ... [ 40%]
../build/pypy/module/_codecs/test/apptest_codecs.py .. [ 40%]
../build/pypy/module/_collections/test/apptest_defaultdict.py .......... [ 40%]
.... [ 40%]
../build/pypy/module/_collections/test/apptest_deque.py ................ [ 41%]
.......................... [ 42%]
../build/pypy/module/_collections/test/apptest_ordereddict.py .......... [ 43%]
[ 43%]
../build/pypy/module/_csv/test/apptest_writer.py ...... [ 43%]
../build/pypy/module/_io/test/apptest_bufferedio.py . [ 43%]
../build/pypy/module/_io/test/apptest_bytesio.py ................. [ 44%]
../build/pypy/module/_io/test/apptest_io.py ............................ [ 45%]
............... [ 46%]
../build/pypy/module/_io/test/apptest_stringio.py ...................... [ 46%]
..... [ 47%]
../build/pypy/module/_io/test/apptest_textio.py ........................ [ 48%]
......s................. [ 49%]
../build/pypy/module/_multibytecodec/test/apptest_codecs.py ............ [ 49%]
....... [ 50%]
../build/pypy/module/_multibytecodec/test/apptest_incremental.py ....... [ 50%]
............. [ 50%]
../build/pypy/module/_multibytecodec/test/apptest_stream.py ..... [ 51%]
../build/pypy/module/_opcode/test/apptest_opcode.py ..... [ 51%]
../build/pypy/module/_pickle/test/apptest_optional_frames.py .. [ 51%]
../build/pypy/module/_pickle/test/apptest_pickle.py .................... [ 52%]
..........................................s................ [ 54%]
../build/pypy/module/_pickle/test/apptest_pypy_extensions.py ........... [ 55%]
................ [ 55%]
../build/pypy/module/_pickle_support/test/apptest__pickle_support.py . [ 55%]
../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py ....... [ 56%]
.. [ 56%]
../build/pypy/module/_pypyjson/test/apptest__pypyjson.py .......... [ 56%]
../build/pypy/module/_rawffi/test/apptest_rawffi.py .. [ 56%]
../build/pypy/module/_socket/test/apptest_socket.py .................... [ 57%]
.ss..................s.................... [ 59%]
../build/pypy/module/_sre/test/apptest_sre.py .......................... [ 60%]
........................................... [ 62%]
../build/pypy/module/_warnings/test/apptest_warnings.py ........s.s..... [ 63%]
[ 63%]
../build/pypy/module/_weakref/test/apptest_weakref.py .................. [ 63%]
......................... [ 64%]
../build/pypy/module/array/test/apptest_array.py ... [ 65%]
../build/pypy/module/atexit/test/apptest_atexit.py .. [ 65%]
../build/pypy/module/bz2/test/apptest_bz2_compdecomp.py .s... [ 65%]
../build/pypy/module/exceptions/test/apptest_exceptions.py ....F........ [ 65%]
............................................... [ 67%]
../build/pypy/module/itertools/test/apptest_itertools.py ...... [ 68%]
../build/pypy/module/marshal/test/apptest_marshal.py ................... [ 68%]
............................ [ 70%]
../build/pypy/module/math/test/apptest_math.py ............. [ 70%]
../build/pypy/module/posix/test/apptest_posix.py .... [ 70%]
../build/pypy/module/pyexpat/test/apptest_pyexpat.py ... [ 70%]
../build/pypy/module/signal/test/apptest_signal.py . [ 71%]
../build/pypy/module/struct/test/apptest_struct.py ..................... [ 71%]
..................... [ 72%]
../build/pypy/module/struct/test/apptest_structbuffer.py .. [ 72%]
../build/pypy/module/sys/test/apptest_audit.py .......... [ 73%]
../build/pypy/module/sys/test/apptest_initpath.py . [ 73%]
../build/pypy/module/sys/test/apptest_sys.py . [ 73%]
../build/pypy/module/time/test/apptest_time.py ........................s [ 74%]
................ [ 75%]
../build/pypy/module/token/test/apptest_token.py ........ [ 75%]
../build/pypy/module/zipimport/test/apptest_zipimport.py . [ 75%]
../build/pypy/objspace/std/test/apptest_boolobject.py ......... [ 75%]
../build/pypy/objspace/std/test/apptest_callmethod.py .......... [ 76%]
../build/pypy/objspace/std/test/apptest_complexobject.py ............... [ 76%]
..................... [ 77%]
../build/pypy/objspace/std/test/apptest_contains.py .. [ 77%]
../build/pypy/objspace/std/test/apptest_instmethobject.py ..... [ 78%]
../build/pypy/objspace/std/test/apptest_intobject.py ................... [ 78%]
............................... [ 80%]
../build/pypy/objspace/std/test/apptest_iterobject.py .................. [ 81%]
... [ 81%]
../build/pypy/objspace/std/test/apptest_memoryobject.py ........ [ 81%]
../build/pypy/objspace/std/test/apptest_objectobject.py .. [ 81%]
../build/pypy/objspace/std/test/apptest_operation.py . [ 81%]
../build/pypy/objspace/std/test/apptest_sliceobject.py ......... [ 82%]
../build/pypy/objspace/std/test/apptest_specializedtuple.py ............ [ 82%]
............ [ 83%]
../build/pypy/objspace/std/test/apptest_stringformat.py ................ [ 83%]
.s......s..................s........................ [ 85%]
../build/pypy/objspace/std/test/apptest_tuple.py ....................... [ 86%]
. [ 86%]
../build/pypy/objspace/std/test/apptest_typeobjject.py ................. [ 87%]
........................................................................ [ 90%]
......... [ 91%]
../build/pypy/objspace/std/test/apptest_unicode.py ..................... [ 92%]
......s................................................................. [ 95%]
......................... [ 96%]
../build/pypy/objspace/std/test/apptest_userobject.py .................. [ 96%]
...... [ 97%]
../build/pypy/objspace/test/apptest_binop_overriding.py . [ 97%]
../build/pypy/objspace/test/apptest_descriptor.py ....s.... [ 97%]
../build/pypy/objspace/test/apptest_descroperation.py ................s. [ 98%]
..................................... [ 99%]
../build/pypy/tool/pytest/fake_pytest/test/apptest_fake_pytest.py . [100%]
=================================== FAILURES ===================================
______________________ test_listcomp_inlined_and_correct _______________________
def test_listcomp_inlined_and_correct():
ns = _run("def f():\n return [x*2 for x in range(4)]\n")
ops = _opnames(ns['f'])
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:19: AssertionError
________________________ test_setcomp_dictcomp_inlined _________________________
def test_setcomp_dictcomp_inlined():
ns = _run(
"def fs():\n return {x for x in range(3)}\n"
"def fd():\n return {k: k*k for k in range(3)}\n")
> assert 'SET_ADD' in _opnames(ns['fs'])
E AssertionError: assert 'SET_ADD' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...] = _opnames(<function fs at 0x0000000002f0c4d0>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:28: AssertionError
________________________ test_module_level_comp_inlined ________________________
def test_module_level_comp_inlined():
code, ops = _module_ops("r = [x for x in range(3)]\n")
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_NAME', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:128: AssertionError
____________________ test_sibling_closure_over_shared_name _____________________
def test_sibling_closure_over_shared_name():
# g closes over f's x (a cell); the comp target uses a hidden slot and
# never touches the cell
ns = _run(
"def f():\n"
" x = 1\n"
" def g():\n"
" return x\n"
" r = [x for x in range(3)]\n"
" return g(), r, x\n")
ops = _opnames(ns['f'])
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:203: AssertionError
_________________ test_sibling_does_not_see_comp_private_name __________________
def test_sibling_does_not_see_comp_private_name():
# x exists in f only through the comp; in g it resolves as a global
ns = _run(
"def f():\n"
" def g():\n"
" return x\n"
" r = [x for x in range(3)]\n"
" return g, r\n")
ops = _opnames(ns['f'])
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:215: AssertionError
_________________________ test_comp_reads_sibling_cell _________________________
def test_comp_reads_sibling_cell():
ns = _run(
"def f():\n"
" x = 1\n"
" def g():\n"
" return x\n"
" r = [x + i for i in range(3)]\n"
" return r, g()\n")
> assert 'LIST_APPEND' in _opnames(ns['f'])
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', ...]
E + where ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', ...] = _opnames(<function f at 0x00000000023d7c40>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:235: AssertionError
_____________________ test_lambda_sibling_allows_inlining ______________________
def test_lambda_sibling_allows_inlining():
ns = _run(
"def f():\n"
" h = lambda: 42\n"
" r = [q for q in range(3)]\n"
" return h(), r\n")
> assert 'LIST_APPEND' in _opnames(ns['f'])
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', ...] = _opnames(<function f at 0x0000000003a9e020>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:244: AssertionError
_____________________ test_genexp_sibling_allows_inlining ______________________
def test_genexp_sibling_allows_inlining():
ns = _run(
"def f():\n"
" ge = (q*2 for q in range(3))\n"
" r = [q for q in range(3)]\n"
" return list(ge), r\n")
> assert 'LIST_APPEND' in _opnames(ns['f'])
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...] = _opnames(<function f at 0x0000000002bd0660>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:253: AssertionError
_______________________ test_walrus_inlined_and_escapes ________________________
def test_walrus_inlined_and_escapes():
ns = _run(
"def f():\n"
" r = [y := x for x in range(3)]\n"
" return r, y\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['f'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', ...]
E + where ['LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', ...] = _opnames(<function f at 0x0000000002bd1088>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:267: AssertionError
________________________ test_use_only_conflict_hidden _________________________
def test_use_only_conflict_hidden():
# i is bound in the comp but only used in f: inside the comp it is a
# fast-hidden slot, outside it still resolves as a global
ns = _run(
"def f():\n"
" s = {i for i in range(5)}\n"
" try:\n"
" return s, i\n"
" except NameError:\n"
" return s, 'global'\n")
ops = _opnames(ns['f'])
> assert 'SET_ADD' in ops
E AssertionError: assert 'SET_ADD' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:281: AssertionError
_______________________ test_parent_global_decl_conflict _______________________
def test_parent_global_decl_conflict():
ns = _run(
"gx = 0\n"
"def f():\n"
" global gx\n"
" gx = 5\n"
" r = [gx*2 for gx in range(3)]\n"
" return r, gx\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['f'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'STORE_GLOBAL', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', ...]
E + where ['LOAD_CONST', 'STORE_GLOBAL', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', ...] = _opnames(<function f at 0x00007f37fd8321b0>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:302: AssertionError
__________________________ test_tuple_target_inlined ___________________________
def test_tuple_target_inlined():
ns = _run(
"def f():\n"
" a, b = 'A', 'B'\n"
" r = [a + b for a, b in [('x','y'), ('u','v')]]\n"
" return r, a, b\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['f'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'LOAD_CONST', 'STORE_FAST', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', ...]
E + where ['LOAD_CONST', 'LOAD_CONST', 'STORE_FAST', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', ...] = _opnames(<function f at 0x00007f37fd832a48>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:344: AssertionError
_______________________ test_multiple_generators_inlined _______________________
def test_multiple_generators_inlined():
ns = _run(
"def f():\n"
" return [x*10 + y for x in range(3) for y in range(2) if x != 1]\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['f'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...] = _opnames(<function f at 0x00007f37fd833088>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:357: AssertionError
_________________________ test_async_listcomp_inlined __________________________
def test_async_listcomp_inlined():
ns = _run(ASYNC_PRELUDE +
"async def f():\n"
" return [x*2 async for x in AIter([1, 2, 3])]\n")
ops = _opnames(ns['f'])
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:408: AssertionError
_____________________ test_async_setcomp_dictcomp_inlined ______________________
def test_async_setcomp_dictcomp_inlined():
ns = _run(ASYNC_PRELUDE +
"async def fs():\n"
" return {x async for x in AIter([1, 2, 2])}\n"
"async def fd():\n"
" return {k: k*k async for k in AIter([1, 2])}\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['fs'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', ...] = _opnames(<function fs at 0x0000000007f8e728>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:418: AssertionError
______________________ test_inner_async_generator_inlined ______________________
def test_inner_async_generator_inlined():
ns = _run(ASYNC_PRELUDE +
"async def f():\n"
" return [(i, j) for i in range(2) async for j in AIter([7, 8])]\n")
> assert 'MAKE_FUNCTION' not in _opnames(ns['f'])
E AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...] = _opnames(<function f at 0x0000000007f8f470>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:453: AssertionError
__________________________ test_module_comp_positions __________________________
def test_module_comp_positions():
# spot-check the positions test_compile relies on: LIST_APPEND carries
# the elt's span inside an inlined module-level comprehension
import dis
snippet = ("[(x,\n"
" 2*x)\n"
" for x\n"
" in [1,2,3]]\n")
code = compile(snippet, '<t>', 'exec')
for ins in dis.get_instructions(code):
if ins.opname == 'LIST_APPEND':
p = ins.positions
assert (p.lineno, p.end_lineno, p.col_offset, p.end_col_offset) == \
(1, 2, 1, 8)
break
else:
> assert False, "LIST_APPEND not found in module code"
E AssertionError: LIST_APPEND not found in module code
E assert False
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:478: AssertionError
_________________________ test_lambda_in_comp_inlined __________________________
def test_lambda_in_comp_inlined():
ns = _run(
"def f():\n"
" return [lambda: x for x in range(3)]\n")
ops = _opnames(ns['f'])
> assert 'LIST_APPEND' in ops
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:573: AssertionError
_________________________ test_genexp_in_comp_inlined __________________________
def test_genexp_in_comp_inlined():
ns = _run(
"def m():\n"
" return [list(y*x for y in range(2)) for x in range(3)]\n")
> assert 'LIST_APPEND' in _opnames(ns['m'])
E AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...]
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', ...] = _opnames(<function m at 0x00000000082432e0>)
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:609: AssertionError
______________________ test_iterator_exception_positions _______________________
def test_iterator_exception_positions():
import dis
code = compile("[x for x in gen_iter()]\n", '<t>', 'exec')
for ins in dis.get_instructions(code):
if ins.opname in ('GET_ITER', 'FOR_ITER'):
p = ins.positions
# the iterator expression is cols 12..22 on line 1
> assert (p.lineno, p.col_offset, p.end_col_offset) == (1, 12, 22), \
(ins.opname, p)
E AssertionError: ('GET_ITER', Positions(lineno=1, end_lineno=1, col_offset=0, end_col_offset=23))
E assert (1, 0, 23) == (1, 12, 22)
E At index 1 diff: 0 != 12
E Use -v to get the full diff
../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py:695: AssertionError
_________________ test_importerror_from_import_sets_name_from __________________
def test_importerror_from_import_sets_name_from():
> exc = raises(ImportError, "from sys import bluchbluchblah")
E TypeError: 'from sys import bluchbluchblah' object (type: <class 'str'>) must be callable
../build/pypy/module/exceptions/test/apptest_exceptions.py:65: TypeError
=============================== warnings summary ===============================
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689: 25 warnings
/buildbot/slave/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: 25 warnings
/buildbot/slave/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
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:958: 8037 warnings
/buildbot/slave/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: 8037 warnings
/buildbot/slave/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: 5377 warnings
/buildbot/slave/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: 5377 warnings
/buildbot/slave/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: 29324 warnings
/buildbot/slave/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: 5712 warnings
/buildbot/slave/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: 5876 warnings
/buildbot/slave/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: 5860 warnings
/buildbot/slave/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: 123 warnings
/buildbot/slave/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: 61 warnings
/buildbot/slave/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))
../build/pypy/objspace/std/test/apptest_unicode.py:650
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/objspace/std/test/apptest_unicode.py:650: SyntaxWarning: invalid escape sequence '\?'
('\?', b'+AFw?'),
pypy/module/_sre/test/apptest_sre.py::test_magic
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/module/_sre/test/apptest_sre.py:54: DeprecationWarning: module 'sre_constants' is deprecated
import _sre, sre_constants
pypy/module/_sre/test/apptest_sre.py::test_no_pattern
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/module/_sre/test/apptest_sre.py:271: DeprecationWarning: module 'sre_compile' is deprecated
import sre_compile, sre_parse
pypy/module/_sre/test/apptest_sre.py::test_no_pattern
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/module/_sre/test/apptest_sre.py:271: DeprecationWarning: module 'sre_parse' is deprecated
import sre_compile, sre_parse
pypy/module/_warnings/test/apptest_warnings.py::test_defaults
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/module/_warnings/test/apptest_warnings.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
pypy/module/_weakref/test/apptest_weakref.py::test_buggy_case
/buildbot/slave/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: : <function test_buggy_case.<locals>.A.__del__ at 0x00000000053a8a48>
TypeError: test_buggy_case.<locals>.A.__del__() takes 0 positional arguments but 1 was given
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
pypy/module/_weakref/test/apptest_weakref.py::test_callback_raises
/buildbot/slave/pypy-c-jit-linux-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: weakref callback : <function test_callback_raises.<locals>.callback at 0x000000000886aa48>
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/module/_weakref/test/apptest_weakref.py", line 498, in callback
explode
NameError: name 'explode' is not defined
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/objspace/std/test/apptest_intobject.py:126: DeprecationWarning: __int__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
assert int(j()) == 42 and type(int(j())) is int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/objspace/std/test/apptest_intobject.py:128: DeprecationWarning: __int__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
assert (int(j()) == 4200000000000000000000000000000000
pypy/objspace/std/test/apptest_intobject.py::test_int_constructor_calls_index
/buildbot/slave/pypy-c-jit-linux-x86-64/build/pypy/objspace/std/test/apptest_intobject.py:556: DeprecationWarning: __index__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
x = int(A())
-- Docs: https://docs.pytest.org/en/stable/warnings.html
- generated xml file: /buildbot/slave/pypy-c-jit-linux-x86-64/venv/test-D.log --
=========================== short test summary info ============================
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_listcomp_inlined_and_correct
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_setcomp_dictcomp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_module_level_comp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_sibling_closure_over_shared_name
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_sibling_does_not_see_comp_private_name
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_comp_reads_sibling_cell
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_lambda_sibling_allows_inlining
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_genexp_sibling_allows_inlining
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_walrus_inlined_and_escapes
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_use_only_conflict_hidden
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_parent_global_decl_conflict
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_tuple_target_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_multiple_generators_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_async_listcomp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_async_setcomp_dictcomp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_inner_async_generator_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_module_comp_positions
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_lambda_in_comp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_genexp_in_comp_inlined
FAILED ../build/pypy/interpreter/astcompiler/test/apptest_inlinecomp.py::test_iterator_exception_positions
FAILED ../build/pypy/module/exceptions/test/apptest_exceptions.py::test_importerror_from_import_sets_name_from
========= 21 failed, 2312 passed, 17 skipped, 73846 warnings in 41.30s =========
program finished with exit code 1
elapsedTime=43.201674