pypy-venv/bin/pypy3 -m pytest -D ../build/pypy --junitxml=test-D.log
in dir /Users/matti/build-worker-x86_64/pypy-c-jit-macos-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:
HOME=/Users/matti
HOMEBREW_CELLAR=/opt/homebrew_x86_64/Cellar
HOMEBREW_PREFIX=/opt/homebrew_x86_64
HOMEBREW_REPOSITORY=/opt/homebrew_x86_64
INFOPATH=/opt/homebrew_x86_64/share/info:
LANG=en_US.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LOGNAME=matti
OLDPWD=/Users/matti
PATH=/Users/matti/oss/pypy-x86_64-buildbot/bin:/opt/homebrew_x86_64/bin:/opt/homebrew_x86_64/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
PKG_CONFIG_PATH=/opt/homebrew_x86_64/opt/openssl@1.1/lib/pkgconfig
PWD=/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv
PYPY_USESSION_DIR=/tmp/buildbot-x86_64
SHELL=/bin/zsh
SHLVL=2
SSH_CLIENT=10.0.0.17 57960 22
SSH_CONNECTION=10.0.0.17 57960 10.0.0.16 22
SSH_TTY=/dev/ttys000
TERM=xterm-256color
TMPDIR=/tmp/buildbot-x86_64
USER=matti
_=/Users/matti/oss/pypy-x86_64-buildbot/bin/buildslave
using PTY: False
============================= test session starts ==============================
platform darwin -- 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 /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/pytest/__init__.py
rootdir: /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build, configfile: pytest.ini
plugins: hypothesis-6.36.2, xdist-3.5.0
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%]
.F [ 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............s.ss...........F...sssss [ 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 ...F [ 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 ......................... [ 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 0x00007fc6f16d9858>)
../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 0x00007fc711f13150>)
../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 0x00007fc711f13858>)
../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 0x00007fc6f1908660>)
../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 0x00007fc6f1908e30>)
../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 0x00007fc7204ec278>)
../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 0x00007fc7204ecd68>)
../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 0x00007fc7204ed150>)
../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 0x00007fc711fc0408>)
../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 0x00007fc711fc1600>)
../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 0x00007fc71211ce30>)
../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_restore_signals _____________________________
def test_restore_signals():
import posix as os
# Copied from lib-python/3/subprocess._execute_child
# when calling subprocess.check_output(['cat', '/proc/self/status'],
# restore_signals=True, universal_newlines=True)
def check_output(restore_signals):
c2pread, c2pwrite = os.pipe()
errpipe_read, errpipe_write = os.pipe()
try:
low_fds_to_close = []
while errpipe_write < 3:
low_fds_to_close.append(errpipe_write)
errpipe_write = os.dup(errpipe_write)
for low_fd in low_fds_to_close:
os.close(low_fd)
args = [b'cat', b'/proc/self/status']
executable_list=[b'/usr/bin/cat']
close_fds = True
fds_to_keep = (errpipe_write,)
cwd = None
env_list = None
p2cread = p2cwrite = -1
errread = errwrite = umask = -1
call_setsid = False
pgid_to_set = -1
preexec_fn = None
gid = gids = uid = None
pid = _posixsubprocess.fork_exec(args, executable_list, close_fds,
fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite, errpipe_read,
errpipe_write, restore_signals, call_setsid, pgid_to_set,
gid, gids, uid, umask,
preexec_fn, subprocess._USE_VFORK)
os.close(errpipe_write)
# Wait for exec to fail or succeed; possibly raising an
# exception (limited in size)
errpipe_data = bytearray()
while True:
part = os.read(errpipe_read, 50000)
errpipe_data += part
if not part or len(errpipe_data) > 50000:
break
if errpipe_data:
newpid, sts = os.waitpid(pid, 0)
raise RuntimeError('running commande returned %s' % sts)
out = os.read(c2pread, 50000)
finally:
os.close(c2pwrite)
os.close(c2pread)
os.close(errpipe_read)
return out
sig_ign_mask1 = ''
sig_ign_mask2 = ''
> for line in check_output(True).splitlines():
../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py:287:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
restore_signals = True
def check_output(restore_signals):
c2pread, c2pwrite = os.pipe()
errpipe_read, errpipe_write = os.pipe()
try:
low_fds_to_close = []
while errpipe_write < 3:
low_fds_to_close.append(errpipe_write)
errpipe_write = os.dup(errpipe_write)
for low_fd in low_fds_to_close:
os.close(low_fd)
args = [b'cat', b'/proc/self/status']
executable_list=[b'/usr/bin/cat']
close_fds = True
fds_to_keep = (errpipe_write,)
cwd = None
env_list = None
p2cread = p2cwrite = -1
errread = errwrite = umask = -1
call_setsid = False
pgid_to_set = -1
preexec_fn = None
gid = gids = uid = None
pid = _posixsubprocess.fork_exec(args, executable_list, close_fds,
fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite, errpipe_read,
errpipe_write, restore_signals, call_setsid, pgid_to_set,
gid, gids, uid, umask,
preexec_fn, subprocess._USE_VFORK)
os.close(errpipe_write)
# Wait for exec to fail or succeed; possibly raising an
# exception (limited in size)
errpipe_data = bytearray()
while True:
part = os.read(errpipe_read, 50000)
errpipe_data += part
if not part or len(errpipe_data) > 50000:
break
if errpipe_data:
newpid, sts = os.waitpid(pid, 0)
> raise RuntimeError('running commande returned %s' % sts)
E RuntimeError: running commande returned 65280
../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py:277: RuntimeError
___________________________ test_tcp_bytearray_name ____________________________
def test_tcp_bytearray_name():
import _socket as socket
if not hasattr(socket, 'AF_UNIX'):
pytest.skip('AF_UNIX not supported.')
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
> s.bind(bytearray(b"\x00python\x00test\x00"))
E FileNotFoundError: [Errno 2] No such file or directory
../build/pypy/module/_socket/test/apptest_socket.py:847: FileNotFoundError
_________________ 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
__________________________ test_all_pathconf_defined ___________________________
def test_all_pathconf_defined():
import sys
import posix
try:
fd = sys.stdin.fileno()
except ValueError:
# translated test run with a fake sys.stdin with no fileno
fd = 1
for name in posix.pathconf_names:
> posix.fpathconf(fd, name) # does not crash
E OSError: [Errno 22] Invalid argument
../build/pypy/module/posix/test/apptest_posix.py:66: OSError
=============================== warnings summary ===============================
pypy-venv/lib/pypy3.12/site-packages/_pytest/assertion/rewrite.py:689: 25 warnings
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/pypy-venv/lib/pypy3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: : <function test_buggy_case.<locals>.A.__del__ at 0x00007fc731a1abd8>
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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 0x00007fc731a1e728>
Traceback (most recent call last):
File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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
/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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: /Users/matti/build-worker-x86_64/pypy-c-jit-macos-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/_posixsubprocess/test/apptest_subprocess.py::test_restore_signals
FAILED ../build/pypy/module/_socket/test/apptest_socket.py::test_tcp_bytearray_name
FAILED ../build/pypy/module/exceptions/test/apptest_exceptions.py::test_importerror_from_import_sets_name_from
FAILED ../build/pypy/module/posix/test/apptest_posix.py::test_all_pathconf_defined
==== 24 failed, 2302 passed, 24 skipped, 73846 warnings in 79.57s (0:01:19) ====
program finished with exit code 1
elapsedTime=84.127647