virt_test/bin/python testrunner/runner.py --logfile=testrun.log --config=pypy/testrunner_cfg.py '--config=~/machine_cfg.py' --root=pypy --timeout=4000
in dir /buildbot/slave/own-linux-x86-64/build (timeout 4000 secs)
watching logfiles {'pytestLog': 'testrun.log'}
argv: ['virt_test/bin/python', 'testrunner/runner.py', '--logfile=testrun.log', '--config=pypy/testrunner_cfg.py', '--config=~/machine_cfg.py', '--root=pypy', '--timeout=4000']
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/own-linux-x86-64/build
PYPYCHERRYPICK=
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
PYTHONPATH=.:
SHLVL=0
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
TMPDIR=/tmp/pytest
VIRTUAL_ENV=/tmp/venv
container=podman
using PTY: False
using config pypy/testrunner_cfg.py
using config /buildbot/slave/machine_cfg.py
running 4 parallel test workers
setting MAKEFLAGS to ' ' (space)
-- config/test
-- interpreter/astcompiler/test
-- interpreter/pyparser/test
-- interpreter/test
-- module/__builtin__/test
-- module/__pypy__/test
-- module/_abc/test
-- module/_ast/test
-- module/_cffi_backend/test
-- module/_codecs/test
-- module/_collections/test
-- module/_continuation/test
-- module/_cppyy/test
-- module/_csv/test
-- module/_demo/test
-- module/_hpy_universal/test/_vendored
-- module/_hpy_universal/test/pypy
-- module/_io/test
-- module/_jitlog/test
-- module/_locale/test
-- module/_lsprof/test
-- module/_md5/test
-- module/_minimal_curses/test
-- module/_multibytecodec/test
-- module/_multiprocessing/test
-- module/_opcode/test
-- module/_pickle/test
-- module/_pickle_support/test
-- module/_posixsubprocess/test
-- module/_pypyjson/test
-- module/_random/test
-- module/_rawffi/alt/test
-- module/_rawffi/test
-- module/_socket/test
-- module/_sre/test
-- module/_vmprof/test
-- module/_warnings/test
-- module/_weakref/test
-- module/_winreg/test
-- module/array/test
-- module/atexit/test
-- module/binascii/test
-- module/bz2/test
-- module/cmath/test
-- module/cpyext/test/test_api.py
-- module/cpyext/test/test_arraymodule.py
-- module/cpyext/test/test_async_iter.py
-- module/cpyext/test/test_boolobject.py
-- module/cpyext/test/test_borrow.py
-- module/cpyext/test/test_buffer.py
-- module/cpyext/test/test_bytearrayobject.py
-- module/cpyext/test/test_bytesobject.py
-- module/cpyext/test/test_capsule.py
-- module/cpyext/test/test_cell.py
-- module/cpyext/test/test_classobject.py
-- module/cpyext/test/test_codecs.py
-- module/cpyext/test/test_complexobject.py
-- module/cpyext/test/test_contextvars.py
-- module/cpyext/test/test_cpyext.py
-- module/cpyext/test/test_datetime.py
-- module/cpyext/test/test_dictobject.py
-- module/cpyext/test/test_eval.py
-- module/cpyext/test/test_exception.py
-- module/cpyext/test/test_fileobject.py
-- module/cpyext/test/test_floatobject.py
-- module/cpyext/test/test_frameobject.py
-- module/cpyext/test/test_funcobject.py
-- module/cpyext/test/test_genobject.py
-- module/cpyext/test/test_getargs.py
-- module/cpyext/test/test_import.py
-- module/cpyext/test/test_iterator.py
-- module/cpyext/test/test_listobject.py
-- module/cpyext/test/test_longobject.py
-- module/cpyext/test/test_mapping.py
-- module/cpyext/test/test_marshal.py
-- module/cpyext/test/test_memoryobject.py
-- module/cpyext/test/test_methodobject.py
-- module/cpyext/test/test_misc.py
-- module/cpyext/test/test_module.py
-- module/cpyext/test/test_namespaceobject.py
-- module/cpyext/test/test_ndarrayobject.py
-- module/cpyext/test/test_number.py
-- module/cpyext/test/test_object.py
-- module/cpyext/test/test_pyerrors.py
-- module/cpyext/test/test_pyfile.py
-- module/cpyext/test/test_pymem.py
-- module/cpyext/test/test_pysignals.py
-- module/cpyext/test/test_pystate.py
-- module/cpyext/test/test_pystrhex.py
-- module/cpyext/test/test_pystrtod.py
-- module/cpyext/test/test_sequence.py
-- module/cpyext/test/test_setobject.py
-- module/cpyext/test/test_sliceobject.py
-- module/cpyext/test/test_structseq.py
-- module/cpyext/test/test_sysmodule.py
-- module/cpyext/test/test_thread.py
-- module/cpyext/test/test_traceback.py
-- module/cpyext/test/test_translate.py
-- module/cpyext/test/test_tupleobject.py
-- module/cpyext/test/test_typeobject.py
-- module/cpyext/test/test_unicodeobject.py
-- module/cpyext/test/test_userslots.py
-- module/cpyext/test/test_version.py
-- module/cpyext/test/test_weakref.py
-- module/crypt/test
-- module/errno/test
-- module/exceptions/test
-- module/faulthandler/test
-- module/fcntl/test
-- module/gc/test
-- module/imp/test
-- module/itertools/test
-- module/marshal/test
-- module/math/test
-- module/micronumpy/test
-- module/mmap/test
-- module/operator/test
-- module/posix/test
-- module/pwd/test
-- module/pyexpat/test
-- module/pypyjit/test
-- module/select/test
-- module/signal/test
-- module/struct/test
-- module/sys/test
-- module/termios/test
-- module/test_lib_pypy
-- module/thread/test
-- module/time/test
-- module/token/test
-- module/unicodedata/test
-- module/zipimport/test
-- module/zlib/test
-- objspace/fake/test
-- objspace/std/test
-- objspace/test
-- sandbox/test
-- tool/bench/test
-- tool/memusage/test
-- tool/pytest/fake_pytest/test
-- tool/pytest/test
-- tool/release/test
-- tool/test
-- total: 143 to run
++ 02:30:12 starting config/test [1 started in total]
++ 02:30:12 starting interpreter/astcompiler/test [2 started in total]
++ 02:30:12 starting interpreter/pyparser/test [3 started in total]
++ 02:30:12 starting interpreter/test [4 started in total]
__ config/test [1 done in total, somefailed=False] ____________________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.py
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 161 items / 1 skipped
config/test/test_pypyoption.py .................................................................................................................................................................
==================== 161 passed, 1 skipped in 9.01 seconds =====================
++ 02:30:22 starting module/__builtin__/test [5 started in total]
__ interpreter/pyparser/test [2 done in total, somefailed=False] ______________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 242 items
interpreter/pyparser/test/apptest_parsestring.py ......
interpreter/pyparser/test/test_automata.py ...
interpreter/pyparser/test/test_future.py ...................................
interpreter/pyparser/test/test_gendfa.py ....
interpreter/pyparser/test/test_parsestring.py ............
interpreter/pyparser/test/test_pylexer.py .
interpreter/pyparser/test/test_pyparse.py ................................................................................................................
interpreter/pyparser/test/test_pytokenizer.py .....................................................................
========================= 242 passed in 47.63 seconds ==========================
++ 02:31:03 starting module/__pypy__/test [6 started in total]
__ module/__builtin__/test [3 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 321 items
module/__builtin__/test/apptest_compile.py .....................
module/__builtin__/test/apptest_descriptor.py .....
module/__builtin__/test/apptest_operator.py .....
module/__builtin__/test/apptest_print.py ...
module/__builtin__/test/test_abstractinst.py ..........s..
module/__builtin__/test/test_breakpoint.py ........
module/__builtin__/test/test_builtin.py .......................................................................
module/__builtin__/test/test_compile.py ..
module/__builtin__/test/test_construct_singletons.py .
module/__builtin__/test/test_descriptor.py ...................................
module/__builtin__/test/test_dir.py ...........
module/__builtin__/test/test_filter.py ........
module/__builtin__/test/test_filter_pickle.py .....
module/__builtin__/test/test_format.py .
module/__builtin__/test/test_functional.py ........................................................................................
module/__builtin__/test/test_map_pickle.py ...
module/__builtin__/test/test_minmax.py .......................
module/__builtin__/test/test_rawinput.py ..
module/__builtin__/test/test_sum.py .
module/__builtin__/test/test_vars.py ...
module/__builtin__/test/test_zip.py ...........
module/__builtin__/test/test_zip_pickle.py .
==================== 320 passed, 1 skipped in 80.85 seconds ====================
++ 02:31:49 starting module/_abc/test [7 started in total]
__ module/__pypy__/test [4 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 83 items
module/__pypy__/test/apptest_picklebuffer.py ........
module/__pypy__/test/test_builders.py .....
module/__pypy__/test/test_bytebuffer.py ...
module/__pypy__/test/test_debug.py .......
module/__pypy__/test/test_identitydict.py ......
module/__pypy__/test/test_intop.py ...........
module/__pypy__/test/test_locals2fast.py .....
module/__pypy__/test/test_magic.py .......s..
module/__pypy__/test/test_newmemoryview.py ........
module/__pypy__/test/test_os.py .
module/__pypy__/test/test_signal.py ..s.s
module/__pypy__/test/test_special.py ............s.
==================== 79 passed, 4 skipped in 61.62 seconds =====================
++ 02:32:09 starting module/_ast/test [8 started in total]
__ module/_abc/test [5 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/_abc/test/apptest_abc.py ...
module/_abc/test/test_abc.py ...
========================== 6 passed in 23.95 seconds ===========================
++ 02:32:17 starting module/_cffi_backend/test [9 started in total]
__ interpreter/astcompiler/test [6 done in total, somefailed=True] ____________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1626 items
interpreter/astcompiler/test/apptest_compiler.py ........
interpreter/astcompiler/test/apptest_exceptiongroup.py .........................
interpreter/astcompiler/test/apptest_fstring.py ...............................
interpreter/astcompiler/test/apptest_inlinecomp.py FF.........F......FFFFF.FF.F....F.F..FF...F.FF...F.......F
interpreter/astcompiler/test/apptest_misc.py ...............
interpreter/astcompiler/test/apptest_patma.py .........................................
interpreter/astcompiler/test/apptest_walrus_comprehension.py ......
interpreter/astcompiler/test/test_assemble.py .......................
interpreter/astcompiler/test/test_ast.py ............
interpreter/astcompiler/test/test_astbuilder.py .................................................................................................................
interpreter/astcompiler/test/test_compiler.py .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
interpreter/astcompiler/test/test_misc.py ...............
interpreter/astcompiler/test/test_symtable.py .................................................
interpreter/astcompiler/test/test_unparse.py ................................
interpreter/astcompiler/test/test_validate.py .....................................................
=================================== 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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'SET_ADD' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE'] = _opnames(<function fs at 0x0000000017d8eec8>)
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_NAME', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_NAME', 'LOAD_CONST', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'CALL_FUNCTION', 'LOAD_FAST', 'LOAD_DEREF', 'BUILD_TUPLE', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_FAST', 'CALL_FUNCTION', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'STORE_DEREF', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_FAST', 'CALL_FUNCTION', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x000000000c056758>)
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'CALL_FUNCTION', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'CALL_FUNCTION', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x0000000011360f00>)
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_GLOBAL', 'LOAD_FAST', 'CALL_FUNCTION', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_GLOBAL', 'LOAD_FAST', 'CALL_FUNCTION', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x000000001152f6e0>)
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_DEREF', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CLOSURE', 'BUILD_TUPLE', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_DEREF', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x0000000010ec0170>)
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 (application-level) AssertionError: assert 'SET_ADD' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'NOP', 'LOAD_FAST', 'LOAD_GLOBAL', 'BUILD_TUPLE', 'RETURN_VALUE', 'PUSH_EXC_INFO', 'LOAD_GLOBAL', 'CHECK_EXC_MATCH', 'POP_JUMP_IF_FALSE', 'POP_TOP', 'LOAD_FAST', 'LOAD_CONST', 'BUILD_TUPLE', 'ROT_TWO', 'POP_EXCEPT', 'RETURN_VALUE', 'RERAISE', 'RERAISE', 'COPY', 'POP_EXCEPT', 'RERAISE']
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'STORE_GLOBAL', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_GLOBAL', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'STORE_GLOBAL', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_GLOBAL', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x000000001266f600>)
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'LOAD_CONST', 'STORE_FAST', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_CONST', 'LOAD_CONST', 'BUILD_LIST', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_FAST', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'LOAD_CONST', 'STORE_FAST', 'STORE_FAST', 'LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_CONST', 'LOAD_CONST', 'BUILD_LIST', 'GET_ITER', 'CALL_FUNCTION', 'STORE_FAST', 'LOAD_FAST', 'LOAD_FAST', 'LOAD_FAST', 'BUILD_TUPLE', 'RETURN_VALUE'] = _opnames(<function f at 0x0000000013097050>)
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE'] = _opnames(<function f at 0x00000000122d9c90>)
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', 'BUILD_LIST', 'CALL_FUNCTION', 'GET_AITER', 'CALL_FUNCTION', 'GET_AWAITABLE', 'LOAD_CONST', 'YIELD_FROM', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', 'BUILD_LIST', 'CALL_FUNCTION', 'GET_AITER', 'CALL_FUNCTION', 'GET_AWAITABLE', 'LOAD_CONST', 'YIELD_FROM', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'LOAD_CONST', 'LOAD_CONST', 'BUILD_LIST', 'CALL_FUNCTION', 'GET_AITER', 'CALL_FUNCTION', 'GET_AWAITABLE', 'LOAD_CONST', 'YIELD_FROM', 'RETURN_VALUE'] = _opnames(<function fs at 0x0000000013c4e330>)
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 (application-level) AssertionError: assert 'MAKE_FUNCTION' not in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'GET_AWAITABLE', 'LOAD_CONST', 'YIELD_FROM', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'GET_AWAITABLE', 'LOAD_CONST', 'YIELD_FROM', 'RETURN_VALUE'] = _opnames(<function f at 0x00000000158c4b48>)
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 (application-level) AssertionError: LIST_APPEND not found in module code
E assert False
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE']
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 (application-level) AssertionError: assert 'LIST_APPEND' in ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE']
E + where ['LOAD_CONST', 'MAKE_FUNCTION', 'LOAD_GLOBAL', 'LOAD_CONST', 'CALL_FUNCTION', 'GET_ITER', 'CALL_FUNCTION', 'RETURN_VALUE'] = _opnames(<function m at 0x000000001651f558>)
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 (application-level) TypeError: expected str, got tuple object
interpreter/astcompiler/test/apptest_inlinecomp.py:696: TypeError
=========================== short test summary info ============================
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_listcomp_inlined_and_correct
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_setcomp_dictcomp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_module_level_comp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_sibling_closure_over_shared_name
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_sibling_does_not_see_comp_private_name
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_comp_reads_sibling_cell
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_lambda_sibling_allows_inlining
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_genexp_sibling_allows_inlining
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_walrus_inlined_and_escapes
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_use_only_conflict_hidden
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_parent_global_decl_conflict
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_tuple_target_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_multiple_generators_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_async_listcomp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_async_setcomp_dictcomp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_inner_async_generator_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_module_comp_positions
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_lambda_in_comp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_genexp_in_comp_inlined
FAIL interpreter/astcompiler/test/apptest_inlinecomp.py::test_iterator_exception_positions
=================== 20 failed, 1606 passed in 164.80 seconds ===================
++ 02:32:59 starting module/_codecs/test [10 started in total]
__ module/_ast/test [7 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 57 items
module/_ast/test/apptest_ast.py ...
module/_ast/test/test_ast.py ......................................................
========================== 57 passed in 72.55 seconds ==========================
++ 02:33:29 starting module/_collections/test [11 started in total]
__ module/_collections/test [8 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 66 items
module/_collections/test/apptest_defaultdict.py ..............
module/_collections/test/apptest_deque.py ..........................................
module/_collections/test/apptest_ordereddict.py ..........
========================== 66 passed in 55.19 seconds ==========================
++ 02:34:28 starting module/_continuation/test [12 started in total]
__ module/_codecs/test [9 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 98 items
module/_codecs/test/apptest_codecs.py ..
module/_codecs/test/test_codecs.py ....................sss...........................................................s......
module/_codecs/test/test_locale.py ...ss.
module/_codecs/test/test_ztranslation.py .
==================== 92 passed, 6 skipped in 110.83 seconds ====================
++ 02:34:55 starting module/_cppyy/test [13 started in total]
__ module/_cppyy/test [10 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 02:34:57 starting module/_csv/test [14 started in total]
__ module/_continuation/test [11 done in total, somefailed=False] _____________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 72 items / 2 skipped
module/_continuation/test/test_generator.py ssss
module/_continuation/test/test_greenlet.py s.ssssss.sssssssssssssss.sss
module/_continuation/test/test_stacklet.py ssssssssssssssssssssssssssssssssssssssss
==================== 3 passed, 71 skipped in 51.82 seconds =====================
++ 02:35:26 starting module/_demo/test [15 started in total]
__ module/_demo/test [12 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/_demo/test/test_import.py ..
module/_demo/test/test_sieve.py .
========================== 3 passed in 17.63 seconds ===========================
++ 02:35:46 starting module/_hpy_universal/test/_vendored [16 started in total]
__ module/_csv/test [13 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 34 items
module/_csv/test/apptest_writer.py ......
module/_csv/test/test_dialect.py ..............
module/_csv/test/test_reader.py .............
module/_csv/test/test_ztranslation.py .
========================== 34 passed in 48.74 seconds ==========================
++ 02:35:48 starting module/_hpy_universal/test/pypy [17 started in total]
__ module/_hpy_universal/test/pypy [14 done in total, somefailed=False] _______
('warning: setuptools.command.build does not exist in setuptools', '44.1.1', 'on', '2.7.18 (539192f72e0a, Apr 26 2026, 20:04:47)\n[PyPy 7.3.22 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]')
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 34 items
module/_hpy_universal/test/pypy/test_apiset.py .......
module/_hpy_universal/test/pypy/test_handlemanager.py ..................s......
module/_hpy_universal/test/pypy/test_storage.py .
module/_hpy_universal/test/pypy/test_ztranslation.py s
==================== 32 passed, 2 skipped in 11.16 seconds =====================
++ 02:36:06 starting module/_io/test [18 started in total]
__ module/_cffi_backend/test [15 done in total, somefailed=False] _____________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 468 items
module/_cffi_backend/test/test_c.py ....................................................................................s....................................................s.....s.......................s.............................s........................s......
module/_cffi_backend/test/test_fastpath.py ..................
module/_cffi_backend/test/test_ffi_obj.py ...............................................
module/_cffi_backend/test/test_file.py s..
module/_cffi_backend/test/test_parse_c_type.py ..............s...
module/_cffi_backend/test/test_re_python.py ....................
module/_cffi_backend/test/test_recompiler.py .........................................................................................s..s...............................
module/_cffi_backend/test/test_unicode_literals.py .......
module/_cffi_backend/test/test_wchar_helper.py .
module/_cffi_backend/test/test_ztranslation.py s
=================== 457 passed, 11 skipped in 381.46 seconds ===================
++ 02:38:40 starting module/_jitlog/test [19 started in total]
__ module/_jitlog/test [16 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/_jitlog/test/test__jitlog.py .
========================== 1 passed in 15.74 seconds ===========================
++ 02:38:57 starting module/_locale/test [20 started in total]
__ module/_locale/test [17 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
module/_locale/test/test_locale.py sssssssssssssss
========================= 15 skipped in 10.22 seconds ==========================
++ 02:39:09 starting module/_lsprof/test [21 started in total]
__ module/_lsprof/test [18 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/_lsprof/test/test_cprofile.py ......
========================== 6 passed in 12.70 seconds ===========================
++ 02:39:24 starting module/_md5/test [22 started in total]
__ module/_io/test [19 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 286 items / 1 skipped
module/_io/test/apptest_bufferedio.py .
module/_io/test/apptest_bytesio.py .................
module/_io/test/apptest_io.py ...........................................
module/_io/test/apptest_stringio.py ...........................
module/_io/test/apptest_textio.py ..............................s.................
module/_io/test/test_bufferedio.py .......................................................................ss................................
module/_io/test/test_fileio.py ....................................
module/_io/test/test_interp_textio.py .........
=================== 283 passed, 4 skipped in 199.31 seconds ====================
++ 02:39:28 starting module/_minimal_curses/test [23 started in total]
__ module/_md5/test [20 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/_md5/test/test_md5.py ........
=========================== 8 passed in 9.89 seconds ===========================
++ 02:39:36 starting module/_multibytecodec/test [24 started in total]
__ interpreter/test [21 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
PYTHON3: /usr/local/bin/python3.12
(Version 3.12.13 (main, May 13 2026, 03:55:23) [GCC 14.2.1 20250110 (Red Hat 14.2.1-11)])
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1376 items
interpreter/test/apptest_annotations.py ..........................
interpreter/test/apptest_annotations_string.py ......
interpreter/test/apptest_buffer.py ......
interpreter/test/apptest_class.py ................
interpreter/test/apptest_coroutine.py .........................................................
interpreter/test/apptest_descrtypecheck.py ..
interpreter/test/apptest_exceptions.py ..........................
interpreter/test/apptest_exctable_dis.py .........
interpreter/test/apptest_exec.py .........................
interpreter/test/apptest_extcall.py .....
interpreter/test/apptest_function.py .....................................s.....................................................
interpreter/test/apptest_generator.py ...................................................................
interpreter/test/apptest_nestedscope.py ..................
interpreter/test/apptest_pep695.py ...............................
interpreter/test/apptest_pycode.py ....
interpreter/test/apptest_pyframe.py ................................................................
interpreter/test/apptest_raise.py ......................................................
interpreter/test/apptest_settrace_jump.py .
interpreter/test/apptest_syntax.py ....................................
interpreter/test/apptest_sys_settrace.py ..............................................................................................................................................
interpreter/test/apptest_traceback.py ........
interpreter/test/apptest_unraisable.py ....
interpreter/test/apptest_with_leak.py .........
interpreter/test/test_app_main.py ..................s..s....................s...s.......................s....x.s...s..........
interpreter/test/test_appinterp.py .............
interpreter/test/test_argument.py ..............................................
interpreter/test/test_buffer.py ...
interpreter/test/test_cellfamily.py .......
interpreter/test/test_code.py ............
interpreter/test/test_compiler.py .............................................................................................................
interpreter/test/test_error.py ..............
interpreter/test/test_exceptcomp.py .........
interpreter/test/test_executioncontext.py ................
interpreter/test/test_extmodules.py .
interpreter/test/test_fsencode.py ...
interpreter/test/test_function.py .............
interpreter/test/test_gateway.py .........................................ss.........................
interpreter/test/test_generator.py .
interpreter/test/test_interpreter.py .................................................
interpreter/test/test_location.py ..........
interpreter/test/test_main.py .....
interpreter/test/test_mixedmodule.py ......
interpreter/test/test_module.py ..................
interpreter/test/test_objspace.py .............................................
interpreter/test/test_pycode.py ..
interpreter/test/test_pyframe.py ................................
interpreter/test/test_reverse_debugging.py ..
interpreter/test/test_special.py ...
interpreter/test/test_syntax.py .....................
interpreter/test/test_targetpypy.py ..
interpreter/test/test_typedef.py ...................
interpreter/test/test_unicodehelper.py ..........
interpreter/test/test_zpy.py ........
interpreter/test/test_zzpickle_and_slow.py s.....s..s..sss........ss...s.
============= 1356 passed, 19 skipped, 1 xfailed in 574.20 seconds =============
++ 02:39:49 starting module/_multiprocessing/test [25 started in total]
__ module/_multibytecodec/test [22 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 67 items
module/_multibytecodec/test/apptest_codecs.py ...................
module/_multibytecodec/test/apptest_incremental.py ....................
module/_multibytecodec/test/apptest_stream.py .....
module/_multibytecodec/test/test_c_codecs.py ..................s
module/_multibytecodec/test/test_multibtye_codecs.py ...
module/_multibytecodec/test/test_translation.py s
==================== 65 passed, 2 skipped in 43.57 seconds =====================
++ 02:40:27 starting module/_opcode/test [26 started in total]
__ module/_opcode/test [23 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/_opcode/test/apptest_opcode.py .....
========================== 5 passed in 15.83 seconds ===========================
++ 02:40:45 starting module/_pickle/test [27 started in total]
__ module/_minimal_curses/test [24 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/_minimal_curses/test/test_curses.py ......
========================== 6 passed in 83.79 seconds ===========================
++ 02:40:55 starting module/_pickle_support/test [28 started in total]
__ module/_pickle_support/test [25 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/_pickle_support/test/apptest__pickle_support.py .
========================== 1 passed in 10.86 seconds ===========================
++ 02:41:08 starting module/_posixsubprocess/test [29 started in total]
__ module/_multiprocessing/test [26 done in total, somefailed=False] __________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
module/_multiprocessing/test/test_interp_semaphore.py .
module/_multiprocessing/test/test_semaphore.py .........
module/_multiprocessing/test/test_win32.py s
module/_multiprocessing/test/test_ztranslation.py .
==================== 11 passed, 1 skipped in 77.94 seconds =====================
++ 02:41:09 starting module/_pypyjson/test [30 started in total]
__ module/_pypyjson/test [27 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 57 items
module/_pypyjson/test/apptest__pypyjson.py ..........
module/_pypyjson/test/test__pypyjson.py ............................................
module/_pypyjson/test/test_simd.py ...
========================== 57 passed in 49.67 seconds ==========================
++ 02:42:01 starting module/_random/test [31 started in total]
__ module/_random/test [28 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
module/_random/test/test_random.py ............
module/_random/test/test_ztranslation.py .
========================== 13 passed in 34.70 seconds ==========================
++ 02:42:39 starting module/_rawffi/alt/test [32 started in total]
__ module/_pickle/test [29 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 108 items
module/_pickle/test/apptest_optional_frames.py ..
module/_pickle/test/apptest_pickle.py ..............................................................s................
module/_pickle/test/apptest_pypy_extensions.py ...........................
=================== 107 passed, 1 skipped in 114.93 seconds ====================
++ 02:42:41 starting module/_rawffi/test [33 started in total]
__ module/_rawffi/alt/test [30 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 73 items
module/_rawffi/alt/test/test_ffitype.py .....
module/_rawffi/alt/test/test_funcptr.py ..................................ssssss.s
module/_rawffi/alt/test/test_struct.py ...............
module/_rawffi/alt/test/test_type_converter.py ...........
==================== 66 passed, 7 skipped in 22.19 seconds =====================
++ 02:43:02 starting module/_socket/test [34 started in total]
__ module/_posixsubprocess/test [31 done in total, somefailed=False] __________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/_posixsubprocess/test/apptest_subprocess.py .........
module/_posixsubprocess/test/test_ztranslation.py .
========================= 10 passed in 108.35 seconds ==========================
++ 02:43:04 starting module/_sre/test [35 started in total]
__ module/_rawffi/test [32 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 86 items
module/_rawffi/test/apptest_rawffi.py ..
module/_rawffi/test/test__rawffi.py ......s.............................................s..........s......
module/_rawffi/test/test_exit.py .
module/_rawffi/test/test_nested.py ......
module/_rawffi/test/test_struct.py ...
module/_rawffi/test/test_tracker.py ...
module/_rawffi/test/test_ztranslation.py .
==================== 83 passed, 3 skipped in 105.25 seconds ====================
n: 2
Arg 0: 3
Arg 1: 15
++ 02:44:30 starting module/_vmprof/test [36 started in total]
__ module/_sre/test [33 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 163 items
module/_sre/test/apptest_sre.py .....................................................................
module/_sre/test/test_app_sre.py .........................................s.s......................
module/_sre/test/test_sre_buf.py ............................
==================== 161 passed, 2 skipped in 90.66 seconds ====================
++ 02:44:38 starting module/_warnings/test [37 started in total]
__ module/_warnings/test [34 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
module/_warnings/test/apptest_warnings.py ........s.s.....
module/_warnings/test/test_warnings.py .
==================== 15 passed, 2 skipped in 26.22 seconds =====================
++ 02:45:06 starting module/_weakref/test [38 started in total]
__ module/_vmprof/test [35 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/_vmprof/test/test__vmprof.py ....s
module/_vmprof/test/test_direct.py ..
===================== 6 passed, 1 skipped in 35.63 seconds =====================
++ 02:45:08 starting module/_winreg/test [39 started in total]
__ module/_winreg/test [36 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.12 seconds ===========================
++ 02:45:09 starting module/array/test [40 started in total]
__ module/_socket/test [37 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 87 items
module/_socket/test/apptest_socket.py .....................ss..................s....................
module/_socket/test/test_sock_app.py ........................
module/_socket/test/test_ztranslation.py .
==================== 84 passed, 3 skipped in 152.00 seconds ====================
++ 02:45:42 starting module/atexit/test [41 started in total]
__ module/atexit/test [38 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/atexit/test/apptest_atexit.py ..
========================== 2 passed in 19.00 seconds ===========================
++ 02:46:02 starting module/binascii/test [42 started in total]
__ module/_weakref/test [39 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 43 items
module/_weakref/test/apptest_weakref.py ...........................................
========================== 43 passed in 51.26 seconds ==========================
++ 02:46:05 starting module/bz2/test [43 started in total]
__ module/binascii/test [40 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items
module/binascii/test/test_binascii.py ..................
========================== 18 passed in 23.47 seconds ==========================
++ 02:46:30 starting module/cmath/test [44 started in total]
__ module/cmath/test [41 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items
module/cmath/test/test_cmath.py ..................
========================== 18 passed in 13.44 seconds ==========================
++ 02:46:44 starting module/cpyext/test/test_api.py [45 started in total]
__ module/array/test [42 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 64 items
module/array/test/apptest_array.py ...
module/array/test/test_array.py .....................s..................s...................
module/array/test/test_ztranslation.py .
==================== 62 passed, 2 skipped in 108.50 seconds ====================
++ 02:47:05 starting module/cpyext/test/test_arraymodule.py [46 started in total]
__ module/bz2/test [43 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 53 items
module/bz2/test/apptest_bz2_compdecomp.py .s...
module/bz2/test/test_bz2_compdecomp.py ..s.............
module/bz2/test/test_bz2_file.py ............................
module/bz2/test/test_interpbz2.py ...
module/bz2/test/test_large.py s
==================== 50 passed, 3 skipped in 91.32 seconds =====================
++ 02:47:39 starting module/cpyext/test/test_async_iter.py [47 started in total]
__ module/cpyext/test/test_api.py [44 done in total, somefailed=False] ________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_api.py ....
========================== 4 passed in 42.48 seconds ===========================
++ 02:47:43 starting module/cpyext/test/test_boolobject.py [48 started in total]
__ module/cpyext/test/test_async_iter.py [45 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_async_iter.py sss
========================== 3 skipped in 38.89 seconds ==========================
++ 02:48:30 starting module/cpyext/test/test_borrow.py [49 started in total]
__ module/cpyext/test/test_boolobject.py [46 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_boolobject.py ....
========================== 4 passed in 62.59 seconds ===========================
++ 02:49:03 starting module/cpyext/test/test_buffer.py [50 started in total]
__ module/cpyext/test/test_arraymodule.py [47 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items
module/cpyext/test/test_arraymodule.py ..........x.......
==================== 17 passed, 1 xfailed in 113.61 seconds ====================
++ 02:49:15 starting module/cpyext/test/test_bytearrayobject.py [51 started in total]
__ module/cpyext/test/test_borrow.py [48 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_borrow.py ...
========================== 3 passed in 57.60 seconds ===========================
++ 02:49:43 starting module/cpyext/test/test_bytesobject.py [52 started in total]
__ module/cpyext/test/test_bytearrayobject.py [49 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_bytearrayobject.py ......
========================== 6 passed in 64.17 seconds ===========================
++ 02:50:35 starting module/cpyext/test/test_capsule.py [53 started in total]
__ module/cpyext/test/test_buffer.py [50 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_buffer.py ......
========================== 6 passed in 77.81 seconds ===========================
++ 02:50:37 starting module/cpyext/test/test_cell.py [54 started in total]
__ module/cpyext/test/test_bytesobject.py [51 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_bytesobject.py ....................
========================= 20 passed in 104.01 seconds ==========================
++ 02:51:39 starting module/cpyext/test/test_classobject.py [55 started in total]
__ module/cpyext/test/test_cell.py [52 done in total, somefailed=False] _______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_cell.py .
========================== 1 passed in 58.25 seconds ===========================
++ 02:51:50 starting module/cpyext/test/test_codecs.py [56 started in total]
__ module/cpyext/test/test_capsule.py [53 done in total, somefailed=False] ____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_capsule.py ...
========================== 3 passed in 76.39 seconds ===========================
++ 02:52:10 starting module/cpyext/test/test_complexobject.py [57 started in total]
__ module/cpyext/test/test_classobject.py [54 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/cpyext/test/test_classobject.py ..
========================== 2 passed in 50.89 seconds ===========================
++ 02:52:45 starting module/cpyext/test/test_contextvars.py [58 started in total]
__ module/cpyext/test/test_codecs.py [55 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_codecs.py ...
========================== 3 passed in 58.59 seconds ===========================
++ 02:53:03 starting module/cpyext/test/test_cpyext.py [59 started in total]
__ module/cpyext/test/test_complexobject.py [56 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_complexobject.py ......
========================== 6 passed in 68.56 seconds ===========================
++ 02:53:30 starting module/cpyext/test/test_datetime.py [60 started in total]
__ module/cpyext/test/test_contextvars.py [57 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_contextvars.py .
========================== 1 passed in 65.35 seconds ===========================
++ 02:54:05 starting module/cpyext/test/test_dictobject.py [61 started in total]
__ module/cpyext/test/test_cpyext.py [58 done in total, somefailed=True] ______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
module/cpyext/test/test_cpyext.py ..s........s....F.........
=================================== FAILURES ===================================
_______________ AppTestCpythonExtension.test_internal_exceptions _______________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e2da800>
def test_internal_exceptions(self):
if self.runappdirect:
skip('cannot import module with undefined functions')
import sys
body = """
PyAPI_FUNC(PyObject*) PyPy_Crash1(void);
PyAPI_FUNC(Py_ssize_t) PyPy_Crash2(void);
PyAPI_FUNC(PyObject*) PyPy_Noop(PyObject*);
static PyObject* foo_crash1(PyObject* self, PyObject *args)
{
return PyPy_Crash1();
}
static PyObject* foo_crash2(PyObject* self, PyObject *args)
{
Py_ssize_t a = PyPy_Crash2();
if (a == -1)
return NULL;
return PyFloat_FromDouble((double)a);
}
static PyObject* foo_crash3(PyObject* self, PyObject *args)
{
Py_ssize_t a = PyPy_Crash2();
if (a == -1)
PyErr_Clear();
return PyFloat_FromDouble((double)a);
}
static PyObject* foo_crash4(PyObject* self, PyObject *args)
{
Py_ssize_t a = PyPy_Crash2();
return PyFloat_FromDouble((double)a);
}
static PyObject* foo_noop(PyObject* self, PyObject* args)
{
Py_INCREF(args);
return PyPy_Noop(args);
}
static PyObject* foo_set(PyObject* self, PyObject *args)
{
PyErr_SetString(PyExc_TypeError, "clear called with no error");
if (PyLong_Check(args)) {
Py_INCREF(args);
return args;
}
return NULL;
}
static PyObject* foo_clear(PyObject* self, PyObject *args)
{
PyErr_Clear();
if (PyLong_Check(args)) {
Py_INCREF(args);
return args;
}
return NULL;
}
static PyMethodDef methods[] = {
{ "crash1", foo_crash1, METH_NOARGS },
{ "crash2", foo_crash2, METH_NOARGS },
{ "crash3", foo_crash3, METH_NOARGS },
{ "crash4", foo_crash4, METH_NOARGS },
{ "clear", foo_clear, METH_O },
{ "set", foo_set, METH_O },
{ "noop", foo_noop, METH_O },
{ NULL }
};
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"%(modname)s", /* m_name */
NULL, /* m_doc */
-1, /* m_size */
methods, /* m_methods */
};
"""
module = self.import_module(name='foo', body=body)
# uncaught interplevel exceptions are turned into SystemError
expected = "ZeroDivisionError('integer division"
exc = raises(SystemError, module.crash1)
# Work around difference in err msg btween CPython2 and PyPy2
assert exc.value.args[0].startswith(expected)
exc = raises(SystemError, module.crash2)
assert exc.value.args[0].startswith(expected)
# caught exception, api.cpython_api return value works
assert module.crash3() == -1
expected = 'c function call returned a result with an exception set'
# PyPy only incompatibility/extension
exc = raises(SystemError, module.crash4)
> assert exc.value.args[0] == expected
E (application-level) AssertionError
[/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_cpyext.py:817]:90: AssertionError
----------------------------- Captured stderr call -----------------------------
<function PyModule_Create2 at 0x0000000007d793d0> DONE
<function PyPy_Crash1 at 0x0000000009219268>Traceback (most recent call last):
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/api.py", line 1137, in wrapper_second_level
result = callable(space, *boxed_args)
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 23, in PyPy_Crash1
1/0
ZeroDivisionError: integer division by zero
<function PyPy_Crash2 at 0x0000000009219178>Traceback (most recent call last):
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/api.py", line 1137, in wrapper_second_level
result = callable(space, *boxed_args)
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 27, in PyPy_Crash2
1/0
ZeroDivisionError: integer division by zero
<function PyPy_Crash2 at 0x0000000009219178>Traceback (most recent call last):
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/api.py", line 1137, in wrapper_second_level
result = callable(space, *boxed_args)
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 27, in PyPy_Crash2
1/0
ZeroDivisionError: integer division by zero
<function PyErr_Clear at 0x0000000006e33cb8> DONE
<function PyFloat_FromDouble at 0x0000000006e34908> DONE
<function PyPy_Crash2 at 0x0000000009219178>Traceback (most recent call last):
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/api.py", line 1137, in wrapper_second_level
result = callable(space, *boxed_args)
File "/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 27, in PyPy_Crash2
1/0
ZeroDivisionError: integer division by zero
<function PyFloat_FromDouble at 0x0000000006e34908> DONE
=========================== short test summary info ============================
FAIL module/cpyext/test/test_cpyext.py::AppTestCpythonExtension::()::test_internal_exceptions
=============== 1 failed, 23 passed, 2 skipped in 121.22 seconds ===============
++ 02:55:21 starting module/cpyext/test/test_eval.py [62 started in total]
__ module/cpyext/test/test_datetime.py [59 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
module/cpyext/test/test_datetime.py ................
========================= 16 passed in 110.92 seconds ==========================
++ 02:55:33 starting module/cpyext/test/test_exception.py [63 started in total]
__ module/cpyext/test/test_dictobject.py [60 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 19 items
module/cpyext/test/test_dictobject.py ...................
========================= 19 passed in 111.16 seconds ==========================
++ 02:56:16 starting module/cpyext/test/test_fileobject.py [64 started in total]
__ module/cpyext/test/test_exception.py [61 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_exception.py ........
========================== 8 passed in 77.75 seconds ===========================
++ 02:57:08 starting module/cpyext/test/test_floatobject.py [65 started in total]
__ module/cpyext/test/test_fileobject.py [62 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_fileobject.py .
========================== 1 passed in 59.87 seconds ===========================
++ 02:57:36 starting module/cpyext/test/test_frameobject.py [66 started in total]
__ module/cpyext/test/test_eval.py [63 done in total, somefailed=False] _______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_eval.py ....................
========================= 20 passed in 141.49 seconds ==========================
++ 02:58:00 starting module/cpyext/test/test_funcobject.py [67 started in total]
__ module/cpyext/test/test_floatobject.py [64 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_floatobject.py ..............
========================== 14 passed in 86.12 seconds ==========================
++ 02:58:49 starting module/cpyext/test/test_genobject.py [68 started in total]
__ module/cpyext/test/test_frameobject.py [65 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_frameobject.py .....
========================== 5 passed in 70.54 seconds ===========================
++ 02:59:03 starting module/cpyext/test/test_getargs.py [69 started in total]
__ module/cpyext/test/test_funcobject.py [66 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_funcobject.py ..............
========================= 14 passed in 116.94 seconds ==========================
++ 03:00:11 starting module/cpyext/test/test_import.py [70 started in total]
__ module/cpyext/test/test_genobject.py [67 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_genobject.py ....
========================== 4 passed in 104.03 seconds ==========================
++ 03:00:53 starting module/cpyext/test/test_iterator.py [71 started in total]
__ module/cpyext/test/test_getargs.py [68 done in total, somefailed=False] ____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
module/cpyext/test/test_getargs.py ................
========================= 16 passed in 100.59 seconds ==========================
++ 03:00:59 starting module/cpyext/test/test_listobject.py [72 started in total]
__ module/cpyext/test/test_import.py [69 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_import.py ........
========================== 8 passed in 104.48 seconds ==========================
++ 03:02:14 starting module/cpyext/test/test_longobject.py [73 started in total]
__ module/cpyext/test/test_iterator.py [70 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_iterator.py ......
========================== 6 passed in 69.53 seconds ===========================
++ 03:02:20 starting module/cpyext/test/test_mapping.py [74 started in total]
__ module/cpyext/test/test_listobject.py [71 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_listobject.py ..............
========================== 14 passed in 90.30 seconds ==========================
++ 03:02:48 starting module/cpyext/test/test_marshal.py [75 started in total]
__ module/cpyext/test/test_mapping.py [72 done in total, somefailed=False] ____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_mapping.py .....
========================== 5 passed in 50.12 seconds ===========================
++ 03:03:26 starting module/cpyext/test/test_memoryobject.py [76 started in total]
__ module/cpyext/test/test_marshal.py [73 done in total, somefailed=False] ____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/cpyext/test/test_marshal.py ..
========================== 2 passed in 64.26 seconds ===========================
++ 03:04:08 starting module/cpyext/test/test_methodobject.py [77 started in total]
__ module/cpyext/test/test_longobject.py [74 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
module/cpyext/test/test_longobject.py .........................
========================= 25 passed in 116.52 seconds ==========================
++ 03:04:25 starting module/cpyext/test/test_misc.py [78 started in total]
__ module/cpyext/test/test_memoryobject.py [75 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
module/cpyext/test/test_memoryobject.py .s..s........
==================== 11 passed, 2 skipped in 91.45 seconds =====================
++ 03:05:15 starting module/cpyext/test/test_module.py [79 started in total]
__ module/cpyext/test/test_misc.py [76 done in total, somefailed=False] _______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_misc.py .
========================== 1 passed in 60.11 seconds ===========================
++ 03:05:37 starting module/cpyext/test/test_namespaceobject.py [80 started in total]
__ module/cpyext/test/test_namespaceobject.py [77 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_namespaceobject.py .
========================== 1 passed in 64.91 seconds ===========================
++ 03:06:58 starting module/cpyext/test/test_ndarrayobject.py [81 started in total]
__ module/cpyext/test/test_ndarrayobject.py [78 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.94 seconds ===========================
++ 03:07:15 starting module/cpyext/test/test_number.py [82 started in total]
__ module/cpyext/test/test_methodobject.py [79 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
module/cpyext/test/test_methodobject.py ...............
========================= 15 passed in 183.26 seconds ==========================
++ 03:07:31 starting module/cpyext/test/test_object.py [83 started in total]
__ module/cpyext/test/test_module.py [80 done in total, somefailed=True] ______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
module/cpyext/test/test_module.py ....................F....
=================================== FAILURES ===================================
___________________ AppTestMultiPhase.test_export_unreported ___________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e104f38>
def test_export_unreported(self):
excinfo = raises(SystemError, self.load_from_name, 'export_unreported_exception')
> assert "initialization" in excinfo.value.args[0]
E (application-level) AssertionError
[/buildbot/slave/own-linux-x86-64/build/pypy/module/cpyext/test/test_module.py:356]:3: AssertionError
----------------------------- Captured stderr call -----------------------------
<function PyErr_SetString at 0x0000000006b3a6b0> DONE
<function PyType_Ready at 0x000000000a543bc8> DONE
=========================== short test summary info ============================
FAIL module/cpyext/test/test_module.py::AppTestMultiPhase::()::test_export_unreported
==================== 1 failed, 24 passed in 122.24 seconds =====================
++ 03:07:32 starting module/cpyext/test/test_pyerrors.py [84 started in total]
__ module/cpyext/test/test_number.py [81 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/cpyext/test/test_number.py .......
========================== 7 passed in 73.21 seconds ===========================
++ 03:08:42 starting module/cpyext/test/test_pyfile.py [85 started in total]
__ module/_hpy_universal/test/_vendored [82 done in total, somefailed=True] ___
('warning: setuptools.command.build does not exist in setuptools', '44.1.1', 'on', '2.7.18 (539192f72e0a, Apr 26 2026, 20:04:47)\n[PyPy 7.3.22 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]')
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 784 items
module/_hpy_universal/test/_vendored/test_00_basic.py ..........................................................
module/_hpy_universal/test/_vendored/test_argparse.py ..........................................................................................
module/_hpy_universal/test/_vendored/test_call.py ..........
module/_hpy_universal/test/_vendored/test_capsule.py ..........
module/_hpy_universal/test/_vendored/test_capsule_legacy.py ..
module/_hpy_universal/test/_vendored/test_contextvar.py ..
module/_hpy_universal/test/_vendored/test_cpy_compat.py ................
module/_hpy_universal/test/_vendored/test_eval.py ....
module/_hpy_universal/test/_vendored/test_helpers.py ......
module/_hpy_universal/test/_vendored/test_hpybuildvalue.py ..............
module/_hpy_universal/test/_vendored/test_hpybytes.py ............
module/_hpy_universal/test/_vendored/test_hpydict.py ............
module/_hpy_universal/test/_vendored/test_hpyerr.py ..ss..............................ss..
module/_hpy_universal/test/_vendored/test_hpyfield.py ssss........ssss..
module/_hpy_universal/test/_vendored/test_hpyglobal.py ..
module/_hpy_universal/test/_vendored/test_hpyimport.py ..
module/_hpy_universal/test/_vendored/test_hpyiter.py ....
module/_hpy_universal/test/_vendored/test_hpylist.py ..........
module/_hpy_universal/test/_vendored/test_hpylong.py ....................................
module/_hpy_universal/test/_vendored/test_hpymodule.py ................
module/_hpy_universal/test/_vendored/test_hpyslice.py ......
module/_hpy_universal/test/_vendored/test_hpystructseq.py ....
module/_hpy_universal/test/_vendored/test_hpytuple.py ........
module/_hpy_universal/test/_vendored/test_hpytype.py ................ss........................................................
module/_hpy_universal/test/_vendored/test_hpytype_legacy.py ................ss..................................................................
module/_hpy_universal/test/_vendored/test_hpyunicode.py ..........................................
module/_hpy_universal/test/_vendored/test_importing.py ss
module/_hpy_universal/test/_vendored/test_legacy_forbidden.py ....ssss
module/_hpy_universal/test/_vendored/test_number.py ..................
module/_hpy_universal/test/_vendored/test_object.py ..................................................
module/_hpy_universal/test/_vendored/test_slots.py ..........................................
module/_hpy_universal/test/_vendored/test_slots_legacy.py ..F...................................................
module/_hpy_universal/test/_vendored/test_tracker.py ............
module/_hpy_universal/test/_vendored/debug/apptest_builder_invalid.py ....
module/_hpy_universal/test/_vendored/debug/apptest_handles.py ..........sss
module/_hpy_universal/test/_vendored/debug/apptest_handles_invalid.py .
=================================== FAILURES ===================================
__________________ AppTestLegacySlots.test_tp_destroy[hybrid] __________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000022ca6e58>
def test_tp_destroy(self):
import gc
mod = self.make_module("""
@DEFINE_PointObject
@DEFINE_Point_new
static long destroyed_x;
HPyDef_SLOT(Point_destroy, HPy_tp_destroy)
static void Point_destroy_impl(void *obj)
{
PointObject *point = (PointObject *)obj;
destroyed_x += point->x;
}
HPyDef_METH(get_destroyed_x, "get_destroyed_x", HPyFunc_NOARGS)
static HPy get_destroyed_x_impl(HPyContext *ctx, HPy self)
{
return HPyLong_FromLong(ctx, destroyed_x);
}
@EXPORT_POINT_TYPE(&Point_new, &Point_destroy)
@EXPORT(get_destroyed_x)
@INIT
""")
point = mod.Point(7, 3)
self.debug_collect()
assert mod.get_destroyed_x() == 0
del point
self.debug_collect()
> assert mod.get_destroyed_x() == 7
E (application-level) AssertionError
[/buildbot/slave/own-linux-x86-64/build/pypy/module/_hpy_universal/test/_vendored/test_slots.py:37]:31: AssertionError
=========================== short test summary info ============================
FAIL module/_hpy_universal/test/_vendored/test_slots_legacy.py::AppTestLegacySlots::()::test_tp_destroy[hybrid]
============= 1 failed, 758 passed, 25 skipped in 2057.74 seconds ==============
++ 03:10:15 starting module/cpyext/test/test_pymem.py [86 started in total]
__ module/cpyext/test/test_pyfile.py [83 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/cpyext/test/test_pyfile.py ...x...
===================== 6 passed, 1 xfailed in 73.75 seconds =====================
++ 03:10:17 starting module/cpyext/test/test_pysignals.py [87 started in total]
__ module/cpyext/test/test_object.py [84 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 41 items
module/cpyext/test/test_object.py .......................s.................
==================== 40 passed, 1 skipped in 169.35 seconds ====================
++ 03:10:39 starting module/cpyext/test/test_pystate.py [88 started in total]
__ module/cpyext/test/test_pyerrors.py [85 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 36 items
module/cpyext/test/test_pyerrors.py ........s........s........s...s.....
==================== 32 passed, 4 skipped in 177.13 seconds ====================
++ 03:10:48 starting module/cpyext/test/test_pystrhex.py [89 started in total]
__ module/cpyext/test/test_pymem.py [86 done in total, somefailed=False] ______
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pymem.py .
========================== 1 passed in 41.63 seconds ===========================
++ 03:11:13 starting module/cpyext/test/test_pystrtod.py [90 started in total]
__ module/cpyext/test/test_pysignals.py [87 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pysignals.py .
========================== 1 passed in 42.19 seconds ===========================
++ 03:11:15 starting module/cpyext/test/test_sequence.py [91 started in total]
__ module/cpyext/test/test_pystrhex.py [88 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pystrhex.py .
========================== 1 passed in 45.56 seconds ===========================
++ 03:11:46 starting module/cpyext/test/test_setobject.py [92 started in total]
__ module/cpyext/test/test_pystate.py [89 done in total, somefailed=False] ____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_pystate.py ....x.....sx..
=============== 11 passed, 1 skipped, 2 xfailed in 70.55 seconds ===============
++ 03:12:06 starting module/cpyext/test/test_sliceobject.py [93 started in total]
__ module/cpyext/test/test_pystrtod.py [90 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_pystrtod.py ....................
========================== 20 passed in 92.83 seconds ==========================
++ 03:13:02 starting module/cpyext/test/test_structseq.py [94 started in total]
__ module/cpyext/test/test_setobject.py [91 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
module/cpyext/test/test_setobject.py .........
========================== 9 passed in 72.81 seconds ===========================
++ 03:13:13 starting module/cpyext/test/test_sysmodule.py [95 started in total]
__ module/cpyext/test/test_sequence.py [92 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
module/cpyext/test/test_sequence.py .......................
========================= 23 passed in 105.18 seconds ==========================
++ 03:13:18 starting module/cpyext/test/test_thread.py [96 started in total]
__ module/cpyext/test/test_sliceobject.py [93 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_sliceobject.py ........
========================== 8 passed in 72.24 seconds ===========================
++ 03:13:33 starting module/cpyext/test/test_traceback.py [97 started in total]
__ module/cpyext/test/test_structseq.py [94 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_structseq.py .
========================== 1 passed in 47.04 seconds ===========================
++ 03:14:01 starting module/cpyext/test/test_translate.py [98 started in total]
__ module/cpyext/test/test_translate.py [95 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_translate.py .
=========================== 1 passed in 7.24 seconds ===========================
++ 03:14:21 starting module/cpyext/test/test_tupleobject.py [99 started in total]
__ module/cpyext/test/test_traceback.py [96 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_traceback.py .
========================== 1 passed in 40.97 seconds ===========================
++ 03:14:25 starting module/cpyext/test/test_typeobject.py [100 started in total]
__ module/cpyext/test/test_sysmodule.py [97 done in total, somefailed=False] __
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_sysmodule.py ...
========================== 3 passed in 55.43 seconds ===========================
++ 03:14:26 starting module/cpyext/test/test_unicodeobject.py [101 started in total]
__ module/cpyext/test/test_thread.py [98 done in total, somefailed=False] _____
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_thread.py x...x.
===================== 4 passed, 2 xfailed in 83.05 seconds =====================
++ 03:15:00 starting module/cpyext/test/test_userslots.py [102 started in total]
__ module/cpyext/test/test_tupleobject.py [99 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/cpyext/test/test_tupleobject.py ..........
========================== 10 passed in 74.99 seconds ==========================
++ 03:15:48 starting module/cpyext/test/test_version.py [103 started in total]
__ module/cpyext/test/test_userslots.py [100 done in total, somefailed=False] _
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/cpyext/test/test_userslots.py .......
========================== 7 passed in 89.58 seconds ===========================
called power
++ 03:16:49 starting module/cpyext/test/test_weakref.py [104 started in total]
__ module/cpyext/test/test_version.py [101 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_version.py ...
========================== 3 passed in 62.22 seconds ===========================
++ 03:17:08 starting module/crypt/test [105 started in total]
__ module/crypt/test [102 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/crypt/test/test_crypt.py .
========================== 1 passed in 40.56 seconds ===========================
++ 03:17:52 starting module/errno/test [106 started in total]
__ module/errno/test [103 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/errno/test/test_errno.py ...
========================== 3 passed in 10.81 seconds ===========================
++ 03:18:05 starting module/exceptions/test [107 started in total]
__ module/cpyext/test/test_weakref.py [104 done in total, somefailed=False] ___
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_weakref.py .....
========================== 5 passed in 79.09 seconds ===========================
++ 03:18:23 starting module/faulthandler/test [108 started in total]
__ module/faulthandler/test [105 done in total, somefailed=False] _____________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/faulthandler/test/test_faulthander.py ..
module/faulthandler/test/test_ztranslation.py .
========================== 3 passed in 28.37 seconds ===========================
++ 03:18:56 starting module/fcntl/test [109 started in total]
__ module/exceptions/test [106 done in total, somefailed=True] ________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 108 items
module/exceptions/test/apptest_exceptions.py ..........................................................F.
module/exceptions/test/test_exc.py ........s..F............F.......................
=================================== FAILURES ===================================
_____________________ test_compile_stage_error_has_no_text _____________________
self = <CallInfo when='call' exception: assert -9 == 10
+ where -9 = <function _check_utf8 at 0x00000000035a6bd8>(*('return "\xc3\xa4"', True, 0, -1))>
func = <function <lambda> at 0x000000000bbdf358>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
../_pytest/runner.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
../_pytest/runner.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_t..._': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>}
def __call__(self, **kwargs):
assert not self.is_historic()
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../_pytest/vendored_packages/pluggy.py:724:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x00007f5596493638>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_t..._': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
../_pytest/vendored_packages/pluggy.py:338:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_t..._': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
> _MultiCall(methods, kwargs, hook.spec_opts).execute()
../_pytest/vendored_packages/pluggy.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x000000000ab53920>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...as_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000c40ac20>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000c40ac20>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...as_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x000000000ab53858>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...as_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000c40abe0>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000c40abe0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...as_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestFunction u'test_compile_stage_error_has_no_text'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
return _wrapped_call(hook_impl.function(*args), self.execute)
> res = hook_impl.function(*args)
../_pytest/vendored_packages/pluggy.py:596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <AppTestFunction u'test_compile_stage_error_has_no_text'>
def pytest_runtest_call(item):
try:
> item.runtest()
../_pytest/runner.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestFunction u'test_compile_stage_error_has_no_text'>
def runtest(self):
target = self.w_obj
space = target.space
self.check_run(space, target)
> self.execute_appex(space, target)
tool/pytest/apptest2.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestFunction u'test_compile_stage_error_has_no_text'>
space = StdObjSpace, w_func = <Function test_compile_stage_error_has_no_text>
def execute_appex(self, space, w_func):
space.getexecutioncontext().set_sys_exc_info(None)
sig = w_func.code._signature
if sig.varargname or sig.kwargname or sig.num_kwonlyargnames():
raise ValueError(
'Test functions may not use *args, **kwargs or '
'keyword-only args')
args_w = self.get_fixtures(space, sig.argnames)
try:
> space.call_function(w_func, *args_w)
tool/pytest/apptest2.py:115:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace, w_func = <Function test_compile_stage_error_has_no_text>
args_w = (), nargs = 0, Function = <class 'pypy.interpreter.function.Function'>
_Method = <class 'pypy.interpreter.function._Method'>
def call_function(self, w_func, *args_w):
nargs = len(args_w) # used for pruning funccall versions
if not self.config.objspace.disable_call_speedhacks and nargs < 5:
# start of hack for performance
from pypy.interpreter.function import Function, _Method
if isinstance(w_func, _Method):
if nargs < 4:
func = w_func.w_function
if isinstance(func, Function):
return func.funccall(w_func.w_instance, *args_w)
if isinstance(w_func, Function):
> return w_func.funccall(*args_w)
interpreter/baseobjspace.py:1237:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function test_compile_stage_error_has_no_text>, args_w = ()
gateway = <module 'pypy.interpreter.gateway' from '/buildbot/slave/own-linux-x86-64/build/pypy/interpreter/gateway.pyc'>
PyCode = <class 'pypy.interpreter.pycode.PyCode'>
code = <code object test_compile_stage_error_has_no_text, file "/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/apptest_exceptions.py", line 768>
def funccall(self, *args_w): # speed hack
from pypy.interpreter import gateway
from pypy.interpreter.pycode import PyCode
code = self.getcode() # hook for the jit
nargs = len(args_w)
fast_natural_arity = code.fast_natural_arity
if nargs == fast_natural_arity:
if nargs == 0:
assert isinstance(code, gateway.BuiltinCode0)
return code.fastcall_0(self.space, self)
elif nargs == 1:
assert isinstance(code, gateway.BuiltinCode1)
return code.fastcall_1(self.space, self, args_w[0])
elif nargs == 2:
assert isinstance(code, gateway.BuiltinCode2)
return code.fastcall_2(self.space, self, args_w[0], args_w[1])
elif nargs == 3:
assert isinstance(code, gateway.BuiltinCode3)
return code.fastcall_3(self.space, self, args_w[0],
args_w[1], args_w[2])
elif nargs == 4:
assert isinstance(code, gateway.BuiltinCode4)
return code.fastcall_4(self.space, self, args_w[0],
args_w[1], args_w[2], args_w[3])
elif (nargs | PyCode.FLATPYCALL) == fast_natural_arity:
assert isinstance(code, PyCode)
if nargs < 5:
new_frame = self.space.createframe(code, self.w_func_globals,
self)
for i in funccallunrolling:
if i < nargs:
new_frame.locals_cells_stack_w[i] = args_w[i]
> return new_frame.run(self.name, self.qualname)
interpreter/function.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
name = 'test_compile_stage_error_has_no_text'
qualname = 'test_compile_stage_error_has_no_text'
def run(self, name=None, qualname=None):
"""Start this frame's execution."""
if self._is_generator_or_coroutine():
return self.initialize_as_generator(name, qualname)
else:
> return self.execute_frame()
interpreter/pyframe.py:257:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
w_arg_or_err = None
def execute_frame(self, w_arg_or_err=None):
"""Execute this frame. Main entry point to the interpreter.
'w_arg_or_err' is non-None iff we are starting or resuming
a generator or coroutine frame; in that case, w_arg_or_err
is the input argument -or- an SApplicationException instance.
"""
from pypy.interpreter import pyopcode as pyopcode
# the following 'assert' is an annotation hint: it hides from
# the annotator all methods that are defined in PyFrame but
# overridden in the {,Host}FrameClass subclasses of PyFrame.
assert (isinstance(self, self.space.FrameClass) or
not self.space.config.translating)
executioncontext = self.space.getexecutioncontext()
executioncontext.enter(self)
got_exception = True
w_exitvalue = self.space.w_None
try:
executioncontext.call_trace(self)
#
# Execution starts just after the last_instr. Initially,
# last_instr is -1. After a generator suspends it points to
# the YIELD_VALUE/YIELD_FROM instruction.
try:
try:
if w_arg_or_err is None:
assert self.last_instr == -1
next_instr = r_uint(0)
else:
next_instr = self.resume_execute_frame(w_arg_or_err)
except pyopcode.Yield:
w_exitvalue = self.popvalue()
else:
w_exitvalue = self.dispatch(self.pycode, next_instr,
executioncontext)
except OperationError:
raise
except Exception as e: # general fall-back
> raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:354:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00000000035a6bd8>(*(\'return "\\xc3\\xa4"\', True, 0, -1))',)
def _convert_unexpected_exception(self, e):
from pypy.interpreter import error
> operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:845:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
w_arg_or_err = None
def execute_frame(self, w_arg_or_err=None):
"""Execute this frame. Main entry point to the interpreter.
'w_arg_or_err' is non-None iff we are starting or resuming
a generator or coroutine frame; in that case, w_arg_or_err
is the input argument -or- an SApplicationException instance.
"""
from pypy.interpreter import pyopcode as pyopcode
# the following 'assert' is an annotation hint: it hides from
# the annotator all methods that are defined in PyFrame but
# overridden in the {,Host}FrameClass subclasses of PyFrame.
assert (isinstance(self, self.space.FrameClass) or
not self.space.config.translating)
executioncontext = self.space.getexecutioncontext()
executioncontext.enter(self)
got_exception = True
w_exitvalue = self.space.w_None
try:
executioncontext.call_trace(self)
#
# Execution starts just after the last_instr. Initially,
# last_instr is -1. After a generator suspends it points to
# the YIELD_VALUE/YIELD_FROM instruction.
try:
try:
if w_arg_or_err is None:
assert self.last_instr == -1
next_instr = r_uint(0)
else:
next_instr = self.resume_execute_frame(w_arg_or_err)
except pyopcode.Yield:
w_exitvalue = self.popvalue()
else:
w_exitvalue = self.dispatch(self.pycode, next_instr,
> executioncontext)
interpreter/pyframe.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
pycode = <code object test_compile_stage_error_has_no_text, file "/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/apptest_exceptions.py", line 768>
next_instr = 0L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00000000050da790>
def dispatch(self, pycode, next_instr, ec):
# For the sequel, force 'next_instr' to be unsigned for performance
next_instr = r_uint(next_instr)
co_code = pycode.co_code
try:
while True:
assert next_instr & 1 == 0
> next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
co_code = 'd\x01d\x02l\x00m\x01}\x00\x01\x00d\x03d\x03\xa0\x02\xa1\x00|\x00d\x03\xa0\x02\xa1\x00\x17\x00g\x03D\x00\x90\x01]\x07}...\x01d\x00\x08\x00}\x05\x08\x00}\x07}\x06Y\x00d\x00}\x04~\x04\x99\x11d\x00}\x04~\x04w\x01w\x00&\x03Y\x00w\x01d\x00S\x00'
next_instr = 0L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00000000050da790>
def handle_bytecode(self, co_code, next_instr, ec):
try:
> next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
co_code = 'd\x01d\x02l\x00m\x01}\x00\x01\x00d\x03d\x03\xa0\x02\xa1\x00|\x00d\x03\xa0\x02\xa1\x00\x17\x00g\x03D\x00\x90\x01]\x07}...\x01d\x00\x08\x00}\x05\x08\x00}\x07}\x06Y\x00d\x00}\x04~\x04\x99\x11d\x00}\x04~\x04w\x01w\x00&\x03Y\x00w\x01d\x00S\x00'
next_instr = 20L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00000000050da790>
@jit.unroll_safe
def dispatch_bytecode(self, co_code, next_instr, ec):
while True:
assert next_instr & 1 == 0
self.last_instr = intmask(next_instr)
if jit.we_are_jitted():
_d = self.debugdata
if ec.space.reverse_debugging or (
_d is not None and _d.w_f_trace is not None):
ec.bytecode_only_trace(self)
next_instr = r_uint(self.last_instr)
else:
# Only reload next_instr from last_instr when something that
# can modify it actually ran (trace function or action
# dispatcher). In the common case (no trace, positive ticker)
# next_instr is unchanged and the round-trip is skipped.
_d = self.debugdata
if ec.space.reverse_debugging or (
_d is not None and _d.w_f_trace is not None) or (
not we_are_translated() and
'bytecode_only_trace' in ec.__dict__):
ec.bytecode_only_trace(self)
next_instr = r_uint(self.last_instr)
actionflag = ec.space.actionflag
if actionflag.decrement_ticker(TICK_COUNTER_STEP) < 0:
actionflag.action_dispatcher(ec, self)
next_instr = r_uint(self.last_instr)
opcode = ord(co_code[next_instr])
oparg = ord(co_code[next_instr + 1])
next_instr += 2
# note: the structure of the code here is such that it makes
# (after translation) a big "if/elif" chain, which is then
# turned into computed gotos.
while opcode == opcodedesc.EXTENDED_ARG.index:
opcode = ord(co_code[next_instr])
arg = ord(co_code[next_instr + 1])
if opcode < HAVE_ARGUMENT:
raise BytecodeCorruption
next_instr += 2
oparg = (oparg * 256) | arg
if opcode == opcodedesc.RETURN_VALUE.index:
self.frame_finished_execution = True # for generators
raise Return
elif opcode == opcodedesc.JUMP_ABSOLUTE.index:
return self.jump_absolute(oparg, next_instr, ec)
elif opcode == opcodedesc.RERAISE.index:
return self.RERAISE(oparg, next_instr)
elif opcode == opcodedesc.FOR_ITER.index:
next_instr = self.FOR_ITER(oparg, next_instr)
elif opcode == opcodedesc.JUMP_FORWARD.index:
next_instr = self.JUMP_FORWARD(oparg, next_instr)
elif opcode == opcodedesc.JUMP_IF_FALSE_OR_POP.index:
return self.JUMP_IF_FALSE_OR_POP(oparg, next_instr, ec)
elif opcode == opcodedesc.JUMP_IF_TRUE_OR_POP.index:
return self.JUMP_IF_TRUE_OR_POP(oparg, next_instr, ec)
elif opcode == opcodedesc.POP_JUMP_IF_FALSE.index:
return self.POP_JUMP_IF_FALSE(oparg, next_instr, ec)
elif opcode == opcodedesc.POP_JUMP_IF_TRUE.index:
return self.POP_JUMP_IF_TRUE(oparg, next_instr, ec)
elif opcode == opcodedesc.POP_JUMP_FORWARD_IF_NONE.index:
next_instr = self.POP_JUMP_FORWARD_IF_NONE(oparg, next_instr)
elif opcode == opcodedesc.POP_JUMP_FORWARD_IF_NOT_NONE.index:
next_instr = self.POP_JUMP_FORWARD_IF_NOT_NONE(oparg, next_instr)
elif opcode == opcodedesc.JUMP_IF_NOT_EXC_MATCH.index:
next_instr = self.JUMP_IF_NOT_EXC_MATCH(oparg, next_instr)
elif opcode == opcodedesc.BINARY_ADD.index:
self.BINARY_ADD(oparg, next_instr)
elif opcode == opcodedesc.BINARY_AND.index:
self.BINARY_AND(oparg, next_instr)
elif opcode == opcodedesc.BINARY_FLOOR_DIVIDE.index:
self.BINARY_FLOOR_DIVIDE(oparg, next_instr)
elif opcode == opcodedesc.BINARY_MATRIX_MULTIPLY.index:
self.BINARY_MATRIX_MULTIPLY(oparg, next_instr)
elif opcode == opcodedesc.BINARY_LSHIFT.index:
self.BINARY_LSHIFT(oparg, next_instr)
elif opcode == opcodedesc.BINARY_MODULO.index:
self.BINARY_MODULO(oparg, next_instr)
elif opcode == opcodedesc.BINARY_MULTIPLY.index:
self.BINARY_MULTIPLY(oparg, next_instr)
elif opcode == opcodedesc.BINARY_OR.index:
self.BINARY_OR(oparg, next_instr)
elif opcode == opcodedesc.BINARY_POWER.index:
self.BINARY_POWER(oparg, next_instr)
elif opcode == opcodedesc.BINARY_RSHIFT.index:
self.BINARY_RSHIFT(oparg, next_instr)
elif opcode == opcodedesc.BINARY_SUBSCR.index:
self.BINARY_SUBSCR(oparg, next_instr)
elif opcode == opcodedesc.BINARY_SUBTRACT.index:
self.BINARY_SUBTRACT(oparg, next_instr)
elif opcode == opcodedesc.BINARY_TRUE_DIVIDE.index:
self.BINARY_TRUE_DIVIDE(oparg, next_instr)
elif opcode == opcodedesc.BINARY_XOR.index:
self.BINARY_XOR(oparg, next_instr)
elif opcode == opcodedesc.BUILD_CONST_KEY_MAP.index:
self.BUILD_CONST_KEY_MAP(oparg, next_instr)
elif opcode == opcodedesc.BUILD_LIST.index:
self.BUILD_LIST(oparg, next_instr)
elif opcode == opcodedesc.BUILD_LIST_FROM_ARG.index:
self.BUILD_LIST_FROM_ARG(oparg, next_instr)
elif opcode == opcodedesc.BUILD_MAP.index:
self.BUILD_MAP(oparg, next_instr)
elif opcode == opcodedesc.BUILD_SET.index:
self.BUILD_SET(oparg, next_instr)
elif opcode == opcodedesc.BUILD_SLICE.index:
self.BUILD_SLICE(oparg, next_instr)
elif opcode == opcodedesc.BUILD_TUPLE.index:
self.BUILD_TUPLE(oparg, next_instr)
elif opcode == opcodedesc.CALL_FUNCTION.index:
self.CALL_FUNCTION(oparg, next_instr)
elif opcode == opcodedesc.CALL_FUNCTION_KW.index:
self.CALL_FUNCTION_KW(oparg, next_instr)
elif opcode == opcodedesc.CALL_FUNCTION_EX.index:
self.CALL_FUNCTION_EX(oparg, next_instr)
elif opcode == opcodedesc.CALL_METHOD.index:
> self.CALL_METHOD(oparg, next_instr)
interpreter/pyopcode.py:313:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
oparg = 0, ignored = (20L,), n_args = 0
w_self = W_UnicodeObject('return "\xc3\xa4"'), n = 1
@jit.unroll_safe
def CALL_METHOD(f, oparg, *ignored):
# opargs contains the arg, and kwarg count, excluding the implicit 'self'
n_args = oparg
w_self = f.peekvalue_maybe_none(n_args)
n = n_args + (w_self is not None)
w_callable = f.peekvalue(n_args + 1)
w_result = f.space.call_valuestack(
> w_callable, n, f, methodcall=w_self is not None, dropvalues=n_args+2)
objspace/std/callmethod.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace, w_func = <FunctionWithFixedCode encode>, nargs = 1
frame = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
dropvalues = 2, methodcall = True
def call_valuestack(self, w_func, nargs, frame, dropvalues, methodcall=False):
# methodcall is only used for better error messages in argument.py
from pypy.interpreter.function import Function, _Method, is_builtin_code
if frame.get_is_being_profiled() and is_builtin_code(w_func):
# XXX: this code is copied&pasted :-( from the slow path below
# call_valuestack().
args = frame.make_arguments(nargs, w_function=w_func)
frame.dropvalues(dropvalues)
return self.call_args_and_c_profile(frame, w_func, args)
if not self.config.objspace.disable_call_speedhacks:
# start of hack for performance
if isinstance(w_func, _Method):
# reuse callable stack place for w_inst
frame.settopvalue(w_func.w_instance, nargs)
nargs += 1
methodcall = True
w_func = w_func.w_function
if isinstance(w_func, Function):
return w_func.funccall_valuestack(
> nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/baseobjspace.py:1264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <FunctionWithFixedCode encode>, nargs = 1
frame = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 768> at line 772
dropvalues = 2, methodcall = True
def funccall_valuestack(self, nargs, frame, dropvalues, methodcall=False): # speed hack
# methodcall is only for better error messages
from pypy.interpreter import gateway
from pypy.interpreter.pycode import PyCode
code = self.getcode() # hook for the jit
#
if (jit.we_are_jitted() and code is self.space._code_of_sys_exc_info
and nargs == 0):
frame.dropvalues(dropvalues)
from pypy.module.sys.vm import exc_info_direct
return exc_info_direct(self.space, frame)
#
fast_natural_arity = code.fast_natural_arity
if nargs == fast_natural_arity:
if nargs == 0:
frame.dropvalues(dropvalues)
assert isinstance(code, gateway.BuiltinCode0)
return code.fastcall_0(self.space, self)
elif nargs == 1:
f_0 = frame.peekvalue(0)
frame.dropvalues(dropvalues)
assert isinstance(code, gateway.BuiltinCode1)
return code.fastcall_1(self.space, self, f_0)
elif nargs == 2:
f_0 = frame.peekvalue(0)
f_1 = frame.peekvalue(1)
frame.dropvalues(dropvalues)
assert isinstance(code, gateway.BuiltinCode2)
return code.fastcall_2(self.space, self, f_1, f_0)
elif nargs == 3:
assert isinstance(code, gateway.BuiltinCode3)
f_0 = frame.peekvalue(0)
f_1 = frame.peekvalue(1)
f_2 = frame.peekvalue(2)
frame.dropvalues(dropvalues)
return code.fastcall_3(self.space, self, f_2,
f_1, f_0)
elif nargs == 4:
assert isinstance(code, gateway.BuiltinCode4)
f_0 = frame.peekvalue(0)
f_1 = frame.peekvalue(1)
f_2 = frame.peekvalue(2)
f_3 = frame.peekvalue(3)
frame.dropvalues(dropvalues)
return code.fastcall_4(self.space, self, f_3, f_2, f_1, f_0)
elif (nargs | Code.FLATPYCALL) == fast_natural_arity:
assert isinstance(code, PyCode)
return self._flat_pycall(code, nargs, frame, dropvalues)
elif fast_natural_arity & Code.FLATPYCALL:
natural_arity = fast_natural_arity & 0xff
if natural_arity > nargs >= natural_arity - len(self.defs_w):
assert isinstance(code, PyCode)
return self._flat_pycall_defaults(code, nargs, frame,
natural_arity - nargs, dropvalues)
elif fast_natural_arity == Code.PASSTHROUGHARGS1 and nargs >= 1:
assert isinstance(code, gateway.BuiltinCodePassThroughArguments1)
w_obj = frame.peekvalue(nargs-1)
args = frame.make_arguments(nargs-1, w_function=self)
frame.dropvalues(dropvalues)
return code.funcrun_obj(self, w_obj, args)
args = frame.make_arguments(nargs, methodcall=methodcall, w_function=self)
frame.dropvalues(dropvalues)
> return self.call_args(args)
interpreter/function.py:204:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <FunctionWithFixedCode encode>
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def call_args(self, args):
# delegate activation to code
> w_res = self.getcode().funcrun(self, args)
interpreter/function.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode3 object at 0x0000000004cd8838>
func = <FunctionWithFixedCode encode>
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun(self, func, args):
> return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:869:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode3 object at 0x0000000004cd8838>
func = <FunctionWithFixedCode encode>, w_obj = None
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun_obj(self, func, w_obj, args):
space = func.space
activation = self.activation
scope_w = args.parse_obj(w_obj, func.qualname, self.sig,
func.defs_w, func.w_kw_defs, self.minargs)
try:
w_result = activation._run(space, scope_w)
except DescrMismatch:
if w_obj is not None:
args = args.prepend(w_obj)
return self._type_unwrap_mismatch(space, args)
except Exception as e:
> self.handle_exception(space, e)
interpreter/gateway.py:884:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode3 object at 0x0000000004cd8838>
space = StdObjSpace
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00000000035a6bd8>(*(\'return "\\xc3\\xa4"\', True, 0, -1))',)
def handle_exception(self, space, e):
try:
if not we_are_translated():
raise
raise e
except OperationError:
raise
except Exception as e: # general fall-back
from pypy.interpreter import error
> raise error.get_converted_unexpected_exception(space, e)
interpreter/gateway.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode3 object at 0x0000000004cd8838>
func = <FunctionWithFixedCode encode>, w_obj = None
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun_obj(self, func, w_obj, args):
space = func.space
activation = self.activation
scope_w = args.parse_obj(w_obj, func.qualname, self.sig,
func.defs_w, func.w_kw_defs, self.minargs)
try:
> w_result = activation._run(space, scope_w)
interpreter/gateway.py:878:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinActivation_UwS_W_UnicodeObject_ObjSpace_W_Root_W_Root object at 0x0000000004cd88e0>
space = StdObjSpace
scope_w = [W_UnicodeObject('return "\xc3\xa4"'), None, None]
def _run(self, space, scope_w):
> return self.behavior(space.interp_w(W_UnicodeObject, scope_w[0]), space, scope_w[1], scope_w[2])
<668-codegen /buildbot/slave/own-linux-x86-64/build/rpython/tool/sourcetools.py:200>:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = W_UnicodeObject('return "\xc3\xa4"'), space = StdObjSpace
w_encoding = None, w_errors = None
def descr_encode(self, space, w_encoding=None, w_errors=None):
encoding, errors = get_encoding_and_errors(space, w_encoding, w_errors)
> return encode_object(space, self, encoding, errors)
objspace/std/unicodeobject.py:601:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, w_obj = W_UnicodeObject('return "\xc3\xa4"')
encoding = 'utf-8', errors = None
def encode_object(space, w_obj, encoding, errors):
from pypy.module._codecs.interp_codecs import(
_call_codec, lookup_text_codec, lookup_error)
# fast paths, only ascii, in the other cases it's too easy to mess up
# the errors
if ((errors is None or errors == 'strict') and
isinstance(w_obj, W_UnicodeObject) and w_obj.is_ascii()):
utf8 = w_obj.utf8_w(space)
if (encoding is None or encoding == 'utf-8' or
encoding == 'utf8' or encoding == 'UTF-8' or
encoding == "latin1" or encoding == "latin-1" or
encoding == 'ascii'):
return space.newbytes(utf8)
if encoding is None:
encoding = space.sys.defaultencoding
w_codec_info = lookup_text_codec(space, 'encode', encoding)
if errors is not None and space.sys.get_flag('dev_mode'):
lookup_error(space, errors)
w_encfunc = space.getitem(w_codec_info, space.newint(0))
> w_retval = _call_codec(space, w_encfunc, w_obj, "encoding", encoding, errors)
objspace/std/unicodeobject.py:1717:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, w_coder = <BuiltinFunction utf_8_encode>
w_obj = W_UnicodeObject('return "\xc3\xa4"'), action = 'encoding'
encoding = 'utf-8', errors = None
def _call_codec(space, w_coder, w_obj, action, encoding, errors):
try:
if errors:
w_res = space.call_function(w_coder, w_obj, space.newtext(errors))
else:
> w_res = space.call_function(w_coder, w_obj)
module/_codecs/interp_codecs.py:582:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace, w_func = <BuiltinFunction utf_8_encode>
args_w = (W_UnicodeObject('return "\xc3\xa4"'),), nargs = 1
Function = <class 'pypy.interpreter.function.Function'>
_Method = <class 'pypy.interpreter.function._Method'>
def call_function(self, w_func, *args_w):
nargs = len(args_w) # used for pruning funccall versions
if not self.config.objspace.disable_call_speedhacks and nargs < 5:
# start of hack for performance
from pypy.interpreter.function import Function, _Method
if isinstance(w_func, _Method):
if nargs < 4:
func = w_func.w_function
if isinstance(func, Function):
return func.funccall(w_func.w_instance, *args_w)
if isinstance(w_func, Function):
> return w_func.funccall(*args_w)
interpreter/baseobjspace.py:1237:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <BuiltinFunction utf_8_encode>
args_w = (W_UnicodeObject('return "\xc3\xa4"'),)
gateway = <module 'pypy.interpreter.gateway' from '/buildbot/slave/own-linux-x86-64/build/pypy/interpreter/gateway.pyc'>
PyCode = <class 'pypy.interpreter.pycode.PyCode'>
code = <pypy.interpreter.gateway.BuiltinCode2 object at 0x000000000d4ec790>
def funccall(self, *args_w): # speed hack
from pypy.interpreter import gateway
from pypy.interpreter.pycode import PyCode
code = self.getcode() # hook for the jit
nargs = len(args_w)
fast_natural_arity = code.fast_natural_arity
if nargs == fast_natural_arity:
if nargs == 0:
assert isinstance(code, gateway.BuiltinCode0)
return code.fastcall_0(self.space, self)
elif nargs == 1:
assert isinstance(code, gateway.BuiltinCode1)
return code.fastcall_1(self.space, self, args_w[0])
elif nargs == 2:
assert isinstance(code, gateway.BuiltinCode2)
return code.fastcall_2(self.space, self, args_w[0], args_w[1])
elif nargs == 3:
assert isinstance(code, gateway.BuiltinCode3)
return code.fastcall_3(self.space, self, args_w[0],
args_w[1], args_w[2])
elif nargs == 4:
assert isinstance(code, gateway.BuiltinCode4)
return code.fastcall_4(self.space, self, args_w[0],
args_w[1], args_w[2], args_w[3])
elif (nargs | PyCode.FLATPYCALL) == fast_natural_arity:
assert isinstance(code, PyCode)
if nargs < 5:
new_frame = self.space.createframe(code, self.w_func_globals,
self)
for i in funccallunrolling:
if i < nargs:
new_frame.locals_cells_stack_w[i] = args_w[i]
return new_frame.run(self.name, self.qualname)
elif nargs >= 1 and fast_natural_arity == Code.PASSTHROUGHARGS1:
assert isinstance(code, gateway.BuiltinCodePassThroughArguments1)
return code.funcrun_obj(self, args_w[0],
Arguments(self.space,
list(args_w[1:])))
> return self.call_args(Arguments(self.space, list(args_w)))
interpreter/function.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <BuiltinFunction utf_8_encode>
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def call_args(self, args):
# delegate activation to code
> w_res = self.getcode().funcrun(self, args)
interpreter/function.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode2 object at 0x000000000d4ec790>
func = <BuiltinFunction utf_8_encode>
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun(self, func, args):
> return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:869:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode2 object at 0x000000000d4ec790>
func = <BuiltinFunction utf_8_encode>, w_obj = None
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun_obj(self, func, w_obj, args):
space = func.space
activation = self.activation
scope_w = args.parse_obj(w_obj, func.qualname, self.sig,
func.defs_w, func.w_kw_defs, self.minargs)
try:
w_result = activation._run(space, scope_w)
except DescrMismatch:
if w_obj is not None:
args = args.prepend(w_obj)
return self._type_unwrap_mismatch(space, args)
except Exception as e:
> self.handle_exception(space, e)
interpreter/gateway.py:884:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode2 object at 0x000000000d4ec790>
space = StdObjSpace
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00000000035a6bd8>(*(\'return "\\xc3\\xa4"\', True, 0, -1))',)
def handle_exception(self, space, e):
try:
if not we_are_translated():
raise
raise e
except OperationError:
raise
except Exception as e: # general fall-back
from pypy.interpreter import error
> raise error.get_converted_unexpected_exception(space, e)
interpreter/gateway.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode2 object at 0x000000000d4ec790>
func = <BuiltinFunction utf_8_encode>, w_obj = None
args = Arguments([W_UnicodeObject('return "\xc3\xa4"')])
def funcrun_obj(self, func, w_obj, args):
space = func.space
activation = self.activation
scope_w = args.parse_obj(w_obj, func.qualname, self.sig,
func.defs_w, func.w_kw_defs, self.minargs)
try:
> w_result = activation._run(space, scope_w)
interpreter/gateway.py:878:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinActivation_UwS_ObjSpace_W_Root_text_or_none object at 0x000000000d4ec870>
space = StdObjSpace
scope_w = [W_UnicodeObject('return "\xc3\xa4"'), W_UnicodeObject('strict')]
def _run(self, space, scope_w):
> return self.behavior(space, scope_w[0], space.text_or_none_w(scope_w[1]))
<2685-codegen /buildbot/slave/own-linux-x86-64/build/rpython/tool/sourcetools.py:200>:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, w_obj = W_UnicodeObject('return "\xc3\xa4"')
errors = 'strict'
@unwrap_spec(errors='text_or_none')
def utf_8_encode(space, w_obj, errors="strict"):
> utf8, lgt = space.utf8_len_w(w_obj)
module/_codecs/interp_codecs.py:818:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace, w_obj = W_UnicodeObject('return "\xc3\xa4"')
def utf8_len_w(self, w_obj):
w_obj = self.convert_arg_to_w_unicode(w_obj)
> return w_obj.utf8_w(self), w_obj._len()
interpreter/baseobjspace.py:2013:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = W_UnicodeObject('return "\xc3\xa4"'), space = StdObjSpace
def utf8_w(self, space):
> jit.record_known_result(self._length, rutf8._check_utf8, self._utf8, True, 0, -1)
objspace/std/unicodeobject.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = 10, func = <function _check_utf8 at 0x00000000035a6bd8>
args = ('return "\xc3\xa4"', True, 0, -1)
llop = <rpython.rtyper.lltypesystem.lloperation._LLOP object at 0x000000000260b248>
@specialize.arg(1)
def record_known_result(result, func, *args):
""" Assure the JIT that func(*args) will produce result. func must be an
elidable function. """
from rpython.rtyper.lltypesystem.lloperation import llop
if not we_are_translated():
# consistency check
> assert func(*args) == result
E assert -9 == 10
E + where -9 = <function _check_utf8 at 0x00000000035a6bd8>(*('return "\xc3\xa4"', True, 0, -1))
../rpython/rlib/jit.py:1231: AssertionError
_________________________ AppTestExc.test_str_unicode __________________________
self = <CallInfo when='call' exception: >
func = <function <lambda> at 0x0000000006ecba60>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
../_pytest/runner.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
../_pytest/runner.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_str_unicode'>}
def __call__(self, **kwargs):
assert not self.is_historic()
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../_pytest/vendored_packages/pluggy.py:724:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x00007f5596493638>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_str_unicode'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
../_pytest/vendored_packages/pluggy.py:338:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_str_unicode'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
> _MultiCall(methods, kwargs, hook.spec_opts).execute()
../_pytest/vendored_packages/pluggy.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x000000000b3487f0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...tr_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000798afe0>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000798afe0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...tr_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x000000000b348778>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...tr_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000798afa0>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000798afa0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...tr_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_str_unicode'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
return _wrapped_call(hook_impl.function(*args), self.execute)
> res = hook_impl.function(*args)
../_pytest/vendored_packages/pluggy.py:596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <AppTestMethod 'test_str_unicode'>
def pytest_runtest_call(item):
try:
> item.runtest()
../_pytest/runner.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_str_unicode'>
def runtest(self):
target = self.obj
src = extract_docstring_if_empty_function(target.im_func)
space = target.im_self.space
if self.config.option.runappdirect:
appexec_definitions = self.parent.obj.__dict__
spaceconfig = getattr(self.parent.obj, 'spaceconfig', None)
usemodules = spaceconfig.get('usemodules') if spaceconfig else None
return run_with_python(self.config.option.python, src, usemodules,
**appexec_definitions)
filename = self._getdynfilename(target)
func = app2interp_temp(src, filename=filename)
w_instance = self.parent.w_instance
> self.execute_appex(space, func, space, w_instance)
tool/pytest/apptest.py:331:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_str_unicode'>, space = StdObjSpace
target = <function test_str_unicode at 0x00007f5595992d40>
args = (StdObjSpace, <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e817c90>)
def execute_appex(self, space, target, *args):
self.space = space
space.getexecutioncontext().set_sys_exc_info(None)
try:
> target(*args)
tool/pytest/apptest.py:267:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e817c90>,)
def appcaller(space, *args_w):
if not isinstance(space, ObjSpace):
raise TypeError("first argument must be a space instance.")
# the last argument can be an Arguments
> w_func = self.wget(space, name)
interpreter/gateway.py:1402:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'>
space = StdObjSpace, name = 'test_str_unicode'
def wget(self, space, name):
> w_globals = self.getwdict(space)
interpreter/gateway.py:1393:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'>
space = StdObjSpace
def getwdict(self, space): # no cache
> return build_applevel_dict(self, space)
interpreter/gateway.py:1498:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'>
space = StdObjSpace
@not_rpython
def build_applevel_dict(self, space):
w_glob = space.newdict(module=True)
space.setitem(w_glob, space.newtext('__name__'), space.newtext(self.modname))
space.exec_(self.source, w_glob, w_glob,
hidden_applevel=self.hidden_applevel,
> filename=self.filename)
interpreter/gateway.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
statement = "def test_str_unicode(self):\n e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n assert str(e) == '\xc3\xa0\xc3\xa8\xc3\xac'"
w_globals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x000000000510d9f0>)
w_locals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x000000000510d9f0>)
hidden_applevel = False
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'
@not_rpython
def exec_(self, statement, w_globals, w_locals, hidden_applevel=False,
filename=None):
"For internal debugging."
if filename is None:
filename = '?'
from pypy.interpreter.pycode import PyCode
if isinstance(statement, str):
> statement = self._cached_compile(filename, statement, 'exec', 0, hidden_applevel)
interpreter/baseobjspace.py:1413:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'
source = "def test_str_unicode(self):\n e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n assert str(e) == '\xc3\xa0\xc3\xa8\xc3\xac'"
mode = 'exec', flags = 0, hidden_applevel = False, ast_transform = None
@not_rpython
def _cached_compile(self, filename, source, mode, flags, hidden_applevel, ast_transform=None):
import os
from hashlib import md5
from rpython.config.translationoption import CACHE_DIR
from rpython.tool.gcc_cache import try_atomic_write
from pypy.module.marshal import interp_marshal
from pypy.interpreter.pycode import default_magic
h = md5(str(default_magic))
h.update(filename)
h.update(source)
h.update(mode)
h.update(str(flags))
h.update(str(hidden_applevel))
addition = ''
if ast_transform:
addition = ast_transform.func_name
# Unlike rpython.tool.gcc_cache, the path below is used directly
# without going through cache_file_path(), so CACHE_DIR may not
# exist yet. Create it here, otherwise try_atomic_write() fails
# with ENOENT when this is the first writer to touch the cache.
if not os.path.isdir(CACHE_DIR):
try:
os.makedirs(CACHE_DIR)
except OSError:
pass # raced with another process; that is fine
cachename = os.path.join(
CACHE_DIR, "applevel_exec_%s_%s" % (addition, h.hexdigest()))
try:
if self.config.translating:
raise IOError("don't use the cache when translating pypy")
with open(cachename, 'rb') as f:
w_bin = self.newbytes(f.read())
w_code = interp_marshal._loads(self, w_bin, hidden_applevel)
except IOError:
# must (re)compile the source
ec = self.getexecutioncontext()
if ast_transform:
c = self.createcompiler()
tree = c.compile_to_ast(source, filename, "exec", 0)
tree = ast_transform(self, tree)
w_code = c.compile_ast(tree, filename, 'exec', 0)
else:
w_code = ec.compiler.compile(
> source, filename, mode, flags, hidden_applevel)
interpreter/baseobjspace.py:1467:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x0000000007477440>
source = "def test_str_unicode(self):\n e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n assert str(e) == '\xc3\xa0\xc3\xa8\xc3\xac'"
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'
mode = 'exec', flags = 0, hidden_applevel = False, optimize = 0
def compile(self, source, filename, mode, flags=0, hidden_applevel=False,
optimize=-1):
if optimize == -1:
optimize = self.space.sys.get_optimize()
assert optimize >= 0
info = pyparse.CompileInfo(filename, mode, flags,
hidden_applevel=hidden_applevel, optimize=optimize)
> mod = self._compile_to_ast(source, info)
interpreter/pycompiler.py:182:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x0000000007477440>
source = "def test_str_unicode(self):\n e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n assert str(e) == '\xc3\xa0\xc3\xa8\xc3\xac'"
info = <pypy.interpreter.pyparser.pyparse.CompileInfo object at 0x000000000510d478>
def _compile_to_ast(self, source, info):
space = self.space
self.parser.reset()
try:
mod = self.parser.parse_source(source, info)
except parseerror.TabError as e:
raise OperationError(space.w_TabError,
e.find_sourceline_and_wrap_info(space, source, info.filename))
except parseerror.IndentationError as e:
raise OperationError(space.w_IndentationError, e.find_sourceline_and_wrap_info(space, source, info.filename))
except parseerror.SyntaxError as e:
#import pdb;pdb.xpm()
> raise OperationError(space.w_SyntaxError, e.find_sourceline_and_wrap_info(space, source, info.filename))
interpreter/pycompiler.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = TokenError(), space = StdObjSpace
source = "def test_str_unicode(self):\n e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n assert str(e) == '\xc3\xa0\xc3\xa8\xc3\xac'"
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:146]'
fill_text = True
def find_sourceline_and_wrap_info(self, space, source=None, filename=None,
fill_text=True):
""" search for the line of input that caused the error and then return
a wrapped tuple that can be used to construct a wrapped SyntaxError.
Optionally pass source, to get better error messages for the case where
this instance was constructed without a source line (.text
attribute). Pass fill_text=False for compile-stage errors."""
text = self.text
if fill_text and text is None and source is not None and self.lineno:
lines = source.splitlines(True)
text = lines[self.lineno - 1]
w_text = w_filename = space.w_None
w_lineno = space.newint(self.lineno)
if filename is None:
filename = self.filename
if filename is not None:
w_filename = space.newfilename(filename)
if text is None:
w_text = space.appexec([w_filename, w_lineno],
"""(filename, lineno):
try:
# tokenize.open honours the coding cookie and strips a BOM
import tokenize
with tokenize.open(filename) as f:
for _ in range(lineno - 1):
f.readline()
return f.readline()
except: # we can't allow any exceptions here!
return None""")
offset = self.offset
end_offset = self.end_offset
if text is not None:
# text may not be UTF-8 in case of decoding errors.
# adjust the encoded text offset to a decoded offset
# XXX do the right thing about continuation lines, which
# XXX are their own fun, sometimes giving offset >
# XXX len(text) for example (right now, avoid crashing)
# this also converts the byte-based self.offset to a
# codepoint-based index into the decoded unicode-version of
# self.text
replacedtext, unilength, _ = _str_decode_utf8_slowpath(space,
> text, space.newbytes(text), 'replace', False, make_replace_error_handler(space), True)
interpreter/pyparser/error.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, s = " e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n"
w_s = W_BytesObject(" e = ValueError('\xc3\xa0\xc3\xa8\xc3\xac')\n")
errors = 'replace', final = False
errorhandler = <function replace_error_handler at 0x00000000025e1b50>
allow_surrogates = True
def _str_decode_utf8_slowpath(space, s, w_s, errors, final, errorhandler, allow_surrogates):
""" Same as checking for the valid utf8, but we know the utf8 is not
valid so we're trying to either raise or pack stuff with error handler.
The key difference is that this is call_may_force.
In CPython this is done in unicode_decode_utf8, which has no
allow_surrogates. That argument is used in at least decode_utf8sp, in
interpreter.error._compute_value.
"""
if errors is None:
errors = 'strict'
result = StringBuilder(len(s))
pos = 0
while pos < len(s):
ordch1 = ord(s[pos])
# fast path for ASCII
# XXX maybe use a while loop here
if ordch1 <= 0x7F:
pos += 1
result.append(chr(ordch1))
continue
n = ord(runicode._utf8_code_length[ordch1 - 0x80])
if pos + n > len(s):
# argh, this obscure block of code is mostly a copy of
# what follows :-(
charsleft = len(s) - pos - 1 # either 0, 1, 2
# note: when we get the 'unexpected end of data' we need
# to care about the pos returned; it can be lower than len(s),
# in case we need to continue running this loop
if not charsleft:
# there's only the start byte and nothing else
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+1)
result.append(r)
continue
ordch2 = ord(s[pos+1])
if n == 3:
# 3-bytes seq with only a continuation byte
if rutf8._invalid_byte_2_of_3(ordch1, ordch2, allow_surrogates):
# second byte invalid, take the first and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
else:
# second byte valid, but third byte missing
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+2)
result.append(r)
continue
elif n == 4:
# 4-bytes seq with 1 or 2 continuation bytes
if rutf8._invalid_byte_2_of_4(ordch1, ordch2):
# second byte invalid, take the first and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif charsleft == 2 and rutf8._invalid_byte_3_of_4(ord(s[pos+2])):
# third byte invalid, take the first two and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
else:
# there's only 1 or 2 valid cb, but the others are missing
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+charsleft+1)
result.append(r)
continue
raise AssertionError("unreachable")
if n == 0:
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid start byte',
w_s, pos, pos+1)
result.append(r)
elif n == 1:
assert 0, "ascii should have gone through the fast path"
elif n == 2:
ordch2 = ord(s[pos+1])
if rutf8._invalid_byte_2_of_2(ordch2):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
# 110yyyyy 10zzzzzz -> 00000000 00000yyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
pos += 2
elif n == 3:
ordch2 = ord(s[pos+1])
ordch3 = ord(s[pos+2])
if rutf8._invalid_byte_2_of_3(ordch1, ordch2, allow_surrogates):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif rutf8._invalid_byte_3_of_3(ordch3):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
# 1110xxxx 10yyyyyy 10zzzzzz -> 00000000 xxxxyyyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
result.append(chr(ordch3))
pos += 3
elif n == 4:
ordch2 = ord(s[pos+1])
ordch3 = ord(s[pos+2])
ordch4 = ord(s[pos+3])
if rutf8._invalid_byte_2_of_4(ordch1, ordch2):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif rutf8._invalid_byte_3_of_4(ordch3):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
elif rutf8._invalid_byte_4_of_4(ordch4):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+3)
result.append(r)
continue
# 11110www 10xxxxxx 10yyyyyy 10zzzzzz -> 000wwwxx xxxxyyyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
result.append(chr(ordch3))
result.append(chr(ordch4))
pos += 4
r = result.build()
# XXX can keep track of the resulting length without calling check_utf8
# here
> return r, rutf8.check_utf8(r, True), pos
interpreter/unicodehelper.py:537:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
s = " e = ValueError('\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd')\n"
allow_surrogates = True, start = 0, stop = -1
def check_utf8(s, allow_surrogates, start=0, stop=-1):
"""Check that 's' is a utf-8-encoded byte string.
Returns the length (number of chars) or raise CheckError.
If allow_surrogates is False, then also raise if we see any.
Note also codepoints_in_utf8(), which also computes the length
faster by assuming that 's' is valid utf-8.
"""
res = _check_utf8(s, allow_surrogates, start, stop)
if res >= 0:
return res
> raise CheckError(~res)
E CheckError
../rpython/rlib/rutf8.py:362: CheckError
________________________ AppTestExc.test_nonascii_name _________________________
self = <CallInfo when='call' exception: >
func = <function <lambda> at 0x000000000d5f4ea8>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
../_pytest/runner.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
../_pytest/runner.py:138:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_nonascii_name'>}
def __call__(self, **kwargs):
assert not self.is_historic()
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../_pytest/vendored_packages/pluggy.py:724:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x00007f5596493638>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_nonascii_name'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
../_pytest/vendored_packages/pluggy.py:338:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f559650fea0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_nonascii_name'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
> _MultiCall(methods, kwargs, hook.spec_opts).execute()
../_pytest/vendored_packages/pluggy.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x0000000008e82458>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...ascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000b2cf6a0>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000b2cf6a0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...ascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
> return _wrapped_call(hook_impl.function(*args), self.execute)
../_pytest/vendored_packages/pluggy.py:595:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wrap_controller = <generator object pytest_runtest_call at 0x0000000008e823e0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...ascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def _wrapped_call(wrap_controller, func):
""" Wrap calling to a function with a generator which needs to yield
exactly once. The yield point will trigger calling the wrapped function
and return its _CallOutcome to the yield point. The generator then needs
to finish (raise StopIteration) in order for the wrapped call to complete.
"""
try:
next(wrap_controller) # first yield
except StopIteration:
_raise_wrapfail(wrap_controller, "did not yield")
call_outcome = _CallOutcome(func)
try:
wrap_controller.send(call_outcome)
_raise_wrapfail(wrap_controller, "has second yield")
except StopIteration:
pass
> return call_outcome.get_result()
../_pytest/vendored_packages/pluggy.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000b2cf660>
def get_result(self):
if self.excinfo is None:
return self.result
else:
ex = self.excinfo
if _py3:
raise ex[1].with_traceback(ex[2])
> _reraise(*ex) # noqa
../_pytest/vendored_packages/pluggy.py:279:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000000000b2cf660>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...ascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>
def __init__(self, func):
try:
> self.result = func()
../_pytest/vendored_packages/pluggy.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_nonascii_name'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>
def execute(self):
all_kwargs = self.kwargs
self.results = results = []
firstresult = self.specopts.get("firstresult")
while self.hook_impls:
hook_impl = self.hook_impls.pop()
args = [all_kwargs[argname] for argname in hook_impl.argnames]
if hook_impl.hookwrapper:
return _wrapped_call(hook_impl.function(*args), self.execute)
> res = hook_impl.function(*args)
../_pytest/vendored_packages/pluggy.py:596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <AppTestMethod 'test_nonascii_name'>
def pytest_runtest_call(item):
try:
> item.runtest()
../_pytest/runner.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_nonascii_name'>
def runtest(self):
target = self.obj
src = extract_docstring_if_empty_function(target.im_func)
space = target.im_self.space
if self.config.option.runappdirect:
appexec_definitions = self.parent.obj.__dict__
spaceconfig = getattr(self.parent.obj, 'spaceconfig', None)
usemodules = spaceconfig.get('usemodules') if spaceconfig else None
return run_with_python(self.config.option.python, src, usemodules,
**appexec_definitions)
filename = self._getdynfilename(target)
func = app2interp_temp(src, filename=filename)
w_instance = self.parent.w_instance
> self.execute_appex(space, func, space, w_instance)
tool/pytest/apptest.py:331:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_nonascii_name'>, space = StdObjSpace
target = <function test_nonascii_name at 0x000000000d5f4890>
args = (StdObjSpace, <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e817c90>)
def execute_appex(self, space, target, *args):
self.space = space
space.getexecutioncontext().set_sys_exc_info(None)
try:
> target(*args)
tool/pytest/apptest.py:267:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000000e817c90>,)
def appcaller(space, *args_w):
if not isinstance(space, ObjSpace):
raise TypeError("first argument must be a space instance.")
# the last argument can be an Arguments
> w_func = self.wget(space, name)
interpreter/gateway.py:1402:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'>
space = StdObjSpace, name = 'test_nonascii_name'
def wget(self, space, name):
> w_globals = self.getwdict(space)
interpreter/gateway.py:1393:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'>
space = StdObjSpace
def getwdict(self, space): # no cache
> return build_applevel_dict(self, space)
interpreter/gateway.py:1498:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ApplevelClass filename='[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'>
space = StdObjSpace
@not_rpython
def build_applevel_dict(self, space):
w_glob = space.newdict(module=True)
space.setitem(w_glob, space.newtext('__name__'), space.newtext(self.modname))
space.exec_(self.source, w_glob, w_glob,
hidden_applevel=self.hidden_applevel,
> filename=self.filename)
interpreter/gateway.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
statement = "def test_nonascii_name(self): \n class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n pass\n assert '\xe6\x97...a5\xe6\x9c\xac2(SyntaxError):\n pass\n assert '\xe6\x97\xa5\xe6\x9c\xac2' in repr(\xe6\x97\xa5\xe6\x9c\xac2)"
w_globals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x000000000e9cdd70>)
w_locals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x000000000e9cdd70>)
hidden_applevel = False
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'
@not_rpython
def exec_(self, statement, w_globals, w_locals, hidden_applevel=False,
filename=None):
"For internal debugging."
if filename is None:
filename = '?'
from pypy.interpreter.pycode import PyCode
if isinstance(statement, str):
> statement = self._cached_compile(filename, statement, 'exec', 0, hidden_applevel)
interpreter/baseobjspace.py:1413:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'
source = "def test_nonascii_name(self): \n class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n pass\n assert '\xe6\x97...a5\xe6\x9c\xac2(SyntaxError):\n pass\n assert '\xe6\x97\xa5\xe6\x9c\xac2' in repr(\xe6\x97\xa5\xe6\x9c\xac2)"
mode = 'exec', flags = 0, hidden_applevel = False, ast_transform = None
@not_rpython
def _cached_compile(self, filename, source, mode, flags, hidden_applevel, ast_transform=None):
import os
from hashlib import md5
from rpython.config.translationoption import CACHE_DIR
from rpython.tool.gcc_cache import try_atomic_write
from pypy.module.marshal import interp_marshal
from pypy.interpreter.pycode import default_magic
h = md5(str(default_magic))
h.update(filename)
h.update(source)
h.update(mode)
h.update(str(flags))
h.update(str(hidden_applevel))
addition = ''
if ast_transform:
addition = ast_transform.func_name
# Unlike rpython.tool.gcc_cache, the path below is used directly
# without going through cache_file_path(), so CACHE_DIR may not
# exist yet. Create it here, otherwise try_atomic_write() fails
# with ENOENT when this is the first writer to touch the cache.
if not os.path.isdir(CACHE_DIR):
try:
os.makedirs(CACHE_DIR)
except OSError:
pass # raced with another process; that is fine
cachename = os.path.join(
CACHE_DIR, "applevel_exec_%s_%s" % (addition, h.hexdigest()))
try:
if self.config.translating:
raise IOError("don't use the cache when translating pypy")
with open(cachename, 'rb') as f:
w_bin = self.newbytes(f.read())
w_code = interp_marshal._loads(self, w_bin, hidden_applevel)
except IOError:
# must (re)compile the source
ec = self.getexecutioncontext()
if ast_transform:
c = self.createcompiler()
tree = c.compile_to_ast(source, filename, "exec", 0)
tree = ast_transform(self, tree)
w_code = c.compile_ast(tree, filename, 'exec', 0)
else:
w_code = ec.compiler.compile(
> source, filename, mode, flags, hidden_applevel)
interpreter/baseobjspace.py:1467:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x0000000007477440>
source = "def test_nonascii_name(self): \n class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n pass\n assert '\xe6\x97...a5\xe6\x9c\xac2(SyntaxError):\n pass\n assert '\xe6\x97\xa5\xe6\x9c\xac2' in repr(\xe6\x97\xa5\xe6\x9c\xac2)"
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'
mode = 'exec', flags = 0, hidden_applevel = False, optimize = 0
def compile(self, source, filename, mode, flags=0, hidden_applevel=False,
optimize=-1):
if optimize == -1:
optimize = self.space.sys.get_optimize()
assert optimize >= 0
info = pyparse.CompileInfo(filename, mode, flags,
hidden_applevel=hidden_applevel, optimize=optimize)
> mod = self._compile_to_ast(source, info)
interpreter/pycompiler.py:182:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x0000000007477440>
source = "def test_nonascii_name(self): \n class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n pass\n assert '\xe6\x97...a5\xe6\x9c\xac2(SyntaxError):\n pass\n assert '\xe6\x97\xa5\xe6\x9c\xac2' in repr(\xe6\x97\xa5\xe6\x9c\xac2)"
info = <pypy.interpreter.pyparser.pyparse.CompileInfo object at 0x000000000e9cdb40>
def _compile_to_ast(self, source, info):
space = self.space
self.parser.reset()
try:
mod = self.parser.parse_source(source, info)
except parseerror.TabError as e:
raise OperationError(space.w_TabError,
e.find_sourceline_and_wrap_info(space, source, info.filename))
except parseerror.IndentationError as e:
raise OperationError(space.w_IndentationError, e.find_sourceline_and_wrap_info(space, source, info.filename))
except parseerror.SyntaxError as e:
#import pdb;pdb.xpm()
> raise OperationError(space.w_SyntaxError, e.find_sourceline_and_wrap_info(space, source, info.filename))
interpreter/pycompiler.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = TokenError(), space = StdObjSpace
source = "def test_nonascii_name(self): \n class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n pass\n assert '\xe6\x97...a5\xe6\x9c\xac2(SyntaxError):\n pass\n assert '\xe6\x97\xa5\xe6\x9c\xac2' in repr(\xe6\x97\xa5\xe6\x9c\xac2)"
filename = '[/buildbot/slave/own-linux-x86-64/build/pypy/module/exceptions/test/test_exc.py:305]'
fill_text = True
def find_sourceline_and_wrap_info(self, space, source=None, filename=None,
fill_text=True):
""" search for the line of input that caused the error and then return
a wrapped tuple that can be used to construct a wrapped SyntaxError.
Optionally pass source, to get better error messages for the case where
this instance was constructed without a source line (.text
attribute). Pass fill_text=False for compile-stage errors."""
text = self.text
if fill_text and text is None and source is not None and self.lineno:
lines = source.splitlines(True)
text = lines[self.lineno - 1]
w_text = w_filename = space.w_None
w_lineno = space.newint(self.lineno)
if filename is None:
filename = self.filename
if filename is not None:
w_filename = space.newfilename(filename)
if text is None:
w_text = space.appexec([w_filename, w_lineno],
"""(filename, lineno):
try:
# tokenize.open honours the coding cookie and strips a BOM
import tokenize
with tokenize.open(filename) as f:
for _ in range(lineno - 1):
f.readline()
return f.readline()
except: # we can't allow any exceptions here!
return None""")
offset = self.offset
end_offset = self.end_offset
if text is not None:
# text may not be UTF-8 in case of decoding errors.
# adjust the encoded text offset to a decoded offset
# XXX do the right thing about continuation lines, which
# XXX are their own fun, sometimes giving offset >
# XXX len(text) for example (right now, avoid crashing)
# this also converts the byte-based self.offset to a
# codepoint-based index into the decoded unicode-version of
# self.text
replacedtext, unilength, _ = _str_decode_utf8_slowpath(space,
> text, space.newbytes(text), 'replace', False, make_replace_error_handler(space), True)
interpreter/pyparser/error.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, s = ' class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n'
w_s = W_BytesObject(' class \xe6\x97\xa5\xe6\x9c\xac(Exception):\n')
errors = 'replace', final = False
errorhandler = <function replace_error_handler at 0x000000000d5f47a0>
allow_surrogates = True
def _str_decode_utf8_slowpath(space, s, w_s, errors, final, errorhandler, allow_surrogates):
""" Same as checking for the valid utf8, but we know the utf8 is not
valid so we're trying to either raise or pack stuff with error handler.
The key difference is that this is call_may_force.
In CPython this is done in unicode_decode_utf8, which has no
allow_surrogates. That argument is used in at least decode_utf8sp, in
interpreter.error._compute_value.
"""
if errors is None:
errors = 'strict'
result = StringBuilder(len(s))
pos = 0
while pos < len(s):
ordch1 = ord(s[pos])
# fast path for ASCII
# XXX maybe use a while loop here
if ordch1 <= 0x7F:
pos += 1
result.append(chr(ordch1))
continue
n = ord(runicode._utf8_code_length[ordch1 - 0x80])
if pos + n > len(s):
# argh, this obscure block of code is mostly a copy of
# what follows :-(
charsleft = len(s) - pos - 1 # either 0, 1, 2
# note: when we get the 'unexpected end of data' we need
# to care about the pos returned; it can be lower than len(s),
# in case we need to continue running this loop
if not charsleft:
# there's only the start byte and nothing else
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+1)
result.append(r)
continue
ordch2 = ord(s[pos+1])
if n == 3:
# 3-bytes seq with only a continuation byte
if rutf8._invalid_byte_2_of_3(ordch1, ordch2, allow_surrogates):
# second byte invalid, take the first and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
else:
# second byte valid, but third byte missing
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+2)
result.append(r)
continue
elif n == 4:
# 4-bytes seq with 1 or 2 continuation bytes
if rutf8._invalid_byte_2_of_4(ordch1, ordch2):
# second byte invalid, take the first and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif charsleft == 2 and rutf8._invalid_byte_3_of_4(ord(s[pos+2])):
# third byte invalid, take the first two and continue
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
else:
# there's only 1 or 2 valid cb, but the others are missing
if not final:
break
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'unexpected end of data',
w_s, pos, pos+charsleft+1)
result.append(r)
continue
raise AssertionError("unreachable")
if n == 0:
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid start byte',
w_s, pos, pos+1)
result.append(r)
elif n == 1:
assert 0, "ascii should have gone through the fast path"
elif n == 2:
ordch2 = ord(s[pos+1])
if rutf8._invalid_byte_2_of_2(ordch2):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
# 110yyyyy 10zzzzzz -> 00000000 00000yyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
pos += 2
elif n == 3:
ordch2 = ord(s[pos+1])
ordch3 = ord(s[pos+2])
if rutf8._invalid_byte_2_of_3(ordch1, ordch2, allow_surrogates):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif rutf8._invalid_byte_3_of_3(ordch3):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
# 1110xxxx 10yyyyyy 10zzzzzz -> 00000000 xxxxyyyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
result.append(chr(ordch3))
pos += 3
elif n == 4:
ordch2 = ord(s[pos+1])
ordch3 = ord(s[pos+2])
ordch4 = ord(s[pos+3])
if rutf8._invalid_byte_2_of_4(ordch1, ordch2):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+1)
result.append(r)
continue
elif rutf8._invalid_byte_3_of_4(ordch3):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+2)
result.append(r)
continue
elif rutf8._invalid_byte_4_of_4(ordch4):
r, pos, rettype, s, w_s = errorhandler(errors, 'utf-8',
'invalid continuation byte',
w_s, pos, pos+3)
result.append(r)
continue
# 11110www 10xxxxxx 10yyyyyy 10zzzzzz -> 000wwwxx xxxxyyyy yyzzzzzz
result.append(chr(ordch1))
result.append(chr(ordch2))
result.append(chr(ordch3))
result.append(chr(ordch4))
pos += 4
r = result.build()
# XXX can keep track of the resulting length without calling check_utf8
# here
> return r, rutf8.check_utf8(r, True), pos
interpreter/unicodehelper.py:537:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
s = ' class \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd(Exception):\n'
allow_surrogates = True, start = 0, stop = -1
def check_utf8(s, allow_surrogates, start=0, stop=-1):
"""Check that 's' is a utf-8-encoded byte string.
Returns the length (number of chars) or raise CheckError.
If allow_surrogates is False, then also raise if we see any.
Note also codepoints_in_utf8(), which also computes the length
faster by assuming that 's' is valid utf-8.
"""
res = _check_utf8(s, allow_surrogates, start, stop)
if res >= 0:
return res
> raise CheckError(~res)
E CheckError
../rpython/rlib/rutf8.py:362: CheckError
=========================== short test summary info ============================
FAIL module/exceptions/test/apptest_exceptions.py::test_compile_stage_error_has_no_text
FAIL module/exceptions/test/test_exc.py::AppTestExc::()::test_str_unicode
FAIL module/exceptions/test/test_exc.py::AppTestExc::()::test_nonascii_name
=============== 3 failed, 104 passed, 1 skipped in 51.18 seconds ===============
++ 03:19:03 starting module/gc/test [110 started in total]
__ module/fcntl/test [107 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/fcntl/test/test_fcntl.py ........
========================== 8 passed in 30.92 seconds ===========================
++ 03:19:29 starting module/imp/test [111 started in total]
__ module/gc/test [108 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
module/gc/test/test_app_referents.py ....
module/gc/test/test_gc.py .....x...
module/gc/test/test_hook.py ........
module/gc/test/test_referents.py ...s....
module/gc/test/test_ztranslation.py .
=============== 28 passed, 1 skipped, 1 xfailed in 46.65 seconds ===============
++ 03:19:54 starting module/itertools/test [112 started in total]
__ module/cpyext/test/test_unicodeobject.py [109 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 78 items
module/cpyext/test/test_unicodeobject.py .......................................................ss.....................
==================== 76 passed, 2 skipped in 339.62 seconds ====================
++ 03:20:20 starting module/marshal/test [113 started in total]
__ module/marshal/test [110 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 51 items
module/marshal/test/apptest_marshal.py ...............................................
module/marshal/test/test_marshal.py .
module/marshal/test/test_marshalimpl.py ...
========================== 51 passed in 58.38 seconds ==========================
++ 03:21:26 starting module/math/test [114 started in total]
__ module/itertools/test [111 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 94 items
module/itertools/test/apptest_itertools.py ......
module/itertools/test/test_itertools.py .......................................................................................
module/itertools/test/test_ztranslation.py .
========================= 94 passed in 103.18 seconds ==========================
++ 03:21:43 starting module/micronumpy/test [115 started in total]
__ module/micronumpy/test [112 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 03:21:46 starting module/mmap/test [116 started in total]
__ module/imp/test [113 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 109 items
module/imp/test/test_app.py ................
module/imp/test/test_import.py ..........................s.................................................s................
=================== 107 passed, 2 skipped in 153.82 seconds ====================
++ 03:22:08 starting module/operator/test [117 started in total]
__ module/mmap/test [114 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/mmap/test/test_mmap.py ......................s.......................
==================== 45 passed, 1 skipped in 34.50 seconds =====================
++ 03:22:24 starting module/posix/test [118 started in total]
__ module/operator/test [115 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 28 items
module/operator/test/test_operator.py ........................
module/operator/test/test_tscmp.py ....
========================== 28 passed in 39.16 seconds ==========================
++ 03:22:52 starting module/pwd/test [119 started in total]
__ module/cpyext/test/test_typeobject.py [116 done in total, somefailed=False]
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 101 items
module/cpyext/test/test_typeobject.py ...................s....................s.........................................s..................
==================== 98 passed, 3 skipped in 497.13 seconds ====================
++ 03:22:57 starting module/pyexpat/test [120 started in total]
__ module/pwd/test [117 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/pwd/test/test_pwd.py ....
module/pwd/test/test_ztranslation.py .
========================== 5 passed in 42.43 seconds ===========================
++ 03:23:36 starting module/pypyjit/test [121 started in total]
__ module/math/test [118 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 210 items
module/math/test/apptest_math.py ............s
module/math/test/test_direct.py ......................................................................................................................................................................
module/math/test/test_math.py ............s..................
=================== 208 passed, 2 skipped in 122.82 seconds ====================
++ 03:23:36 starting module/select/test [122 started in total]
__ module/pyexpat/test [119 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
module/pyexpat/test/apptest_pyexpat.py ...
module/pyexpat/test/test_build.py .
module/pyexpat/test/test_parser.py .................
========================== 21 passed in 42.99 seconds ==========================
++ 03:23:41 starting module/signal/test [123 started in total]
__ module/pypyjit/test [120 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 29 items
module/pypyjit/test/test_jit_hook.py ........s
module/pypyjit/test/test_jit_not_in_trace.py ..
module/pypyjit/test/test_jit_setup.py ....
module/pypyjit/test/test_policy.py ............
module/pypyjit/test/test_pyframe.py .
module/pypyjit/test/test_ztranslation.py .
==================== 28 passed, 1 skipped in 61.52 seconds =====================
++ 03:24:42 starting module/struct/test [124 started in total]
__ module/posix/test [121 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 180 items / 2 skipped
module/posix/test/apptest_posix.py ....
module/posix/test/test_interp_posix.py ....
module/posix/test/test_posix2.py ......................................................................................s......s..................s..ss.......................ssss........
module/posix/test/test_scandir.py ....................
=================== 171 passed, 11 skipped in 140.74 seconds ===================
++ 03:24:49 starting module/sys/test [125 started in total]
__ module/select/test [122 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/select/test/test_epoll.py ..........
module/select/test/test_kqueue.py ssssss
module/select/test/test_select.py ............................
module/select/test/test_select_signal.py .
module/select/test/test_ztranslation.py .
==================== 40 passed, 6 skipped in 83.68 seconds =====================
++ 03:25:04 starting module/termios/test [126 started in total]
__ module/signal/test [123 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 27 items
module/signal/test/apptest_signal.py .
module/signal/test/test_signal.py ..........................
========================== 27 passed in 89.18 seconds ==========================
++ 03:25:16 starting module/test_lib_pypy [127 started in total]
__ module/struct/test [124 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 52 items
module/struct/test/apptest_struct.py ..........................................
module/struct/test/apptest_structbuffer.py ..
module/struct/test/test_struct.py .......
module/struct/test/test_ztranslation.py .
========================== 52 passed in 52.62 seconds ==========================
++ 03:25:40 starting module/thread/test [128 started in total]
__ module/sys/test [125 done in total, somefailed=True] _______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 102 items
module/sys/test/apptest_audit.py ..........
module/sys/test/apptest_initpath.py .
module/sys/test/apptest_sys.py .
module/sys/test/test_encoding.py ..
module/sys/test/test_initpath.py ..........
module/sys/test/test_sysmodule.py .........................................F....s........................
module/sys/test/test_version.py .......
=================================== FAILURES ===================================
_________ AppTestSysModulePortedFromCPython.test_recursionlimit_toolow _________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000003361c20>
def test_recursionlimit_toolow(self):
import sys
def callatlevel(l):
if l > 0:
callatlevel(l - 1)
else:
sys.setrecursionlimit(1)
> with raises(RecursionError):
callatlevel(500)
E (application-level) AssertionError: raises() expected <class 'RecursionError'>, but got no exception
[/buildbot/slave/own-linux-x86-64/build/pypy/module/sys/test/test_sysmodule.py:619]:8: AssertionError
=========================== short test summary info ============================
FAIL module/sys/test/test_sysmodule.py::AppTestSysModulePortedFromCPython::()::test_recursionlimit_toolow
=============== 1 failed, 100 passed, 1 skipped in 54.27 seconds ===============
++ 03:25:47 starting module/time/test [129 started in total]
__ module/test_lib_pypy [126 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 238 items / 5 skipped
module/test_lib_pypy/test_code_module.py ...
module/test_lib_pypy/test_collections.py .....................
module/test_lib_pypy/test_marshal_extra.py .......................................................................................................................................................
module/test_lib_pypy/test_md5_extra.py ......
module/test_lib_pypy/test_pickle_extra.py s
module/test_lib_pypy/test_sha_extra.py .....
module/test_lib_pypy/test_site_extra.py .
module/test_lib_pypy/test_stackless.py ..............................
module/test_lib_pypy/test_stackless_pickling.py ..
module/test_lib_pypy/test_structseq.py ...........
module/test_lib_pypy/test_tputil.py ..s....
==================== 236 passed, 7 skipped in 83.22 seconds ====================
++ 03:26:43 starting module/token/test [130 started in total]
__ module/token/test [127 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/token/test/apptest_token.py ........
========================== 8 passed in 11.13 seconds ===========================
++ 03:26:55 starting module/unicodedata/test [131 started in total]
__ module/unicodedata/test [128 done in total, somefailed=False] ______________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 35 items
module/unicodedata/test/test_hyp.py ................
module/unicodedata/test/test_unicodedata.py ...................
========================== 35 passed in 27.93 seconds ==========================
++ 03:27:28 starting module/zipimport/test [132 started in total]
__ module/time/test [129 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 43 items
module/time/test/apptest_time.py ........................s................
module/time/test/test_timeutils.py .
module/time/test/test_ztranslation.py .
==================== 42 passed, 1 skipped in 94.32 seconds =====================
++ 03:27:29 starting module/zlib/test [133 started in total]
__ module/zipimport/test [130 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/zipimport/test/apptest_zipimport.py .
=========================== 1 passed in 9.27 seconds ===========================
++ 03:27:38 starting objspace/fake/test [134 started in total]
__ module/termios/test [131 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/termios/test/test_termios.py ..........
========================= 10 passed in 159.65 seconds ==========================
++ 03:27:50 starting objspace/std/test [135 started in total]
__ objspace/fake/test [132 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
objspace/fake/test/test_checkmodule.py ........
objspace/fake/test/test_objspace.py .............
========================== 21 passed in 29.24 seconds ==========================
++ 03:28:10 starting objspace/test [136 started in total]
__ module/zlib/test [133 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/zlib/test/test_zlib.py ...............................s..s...........
==================== 44 passed, 2 skipped in 44.79 seconds =====================
++ 03:28:20 starting sandbox/test [137 started in total]
__ objspace/test [134 done in total, somefailed=False] ________________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 75 items
objspace/test/apptest_binop_overriding.py .
objspace/test/apptest_descriptor.py ....s....
objspace/test/apptest_descroperation.py ................s......................................
objspace/test/test_descroperation.py ..........
==================== 73 passed, 2 skipped in 18.90 seconds =====================
++ 03:28:31 starting tool/bench/test [138 started in total]
__ tool/bench/test [135 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items / 1 skipped
tool/bench/test/test_pypyresult.py ...
===================== 3 passed, 1 skipped in 1.12 seconds ======================
++ 03:28:32 starting tool/memusage/test [139 started in total]
__ tool/memusage/test [136 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
tool/memusage/test/test_log2gnumeric.py .....
=========================== 5 passed in 1.11 seconds ===========================
++ 03:28:34 starting tool/pytest/fake_pytest/test [140 started in total]
__ tool/pytest/fake_pytest/test [137 done in total, somefailed=False] _________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
tool/pytest/fake_pytest/test/apptest_fake_pytest.py .
=========================== 1 passed in 8.39 seconds ===========================
++ 03:28:44 starting tool/pytest/test [141 started in total]
__ sandbox/test [138 done in total, somefailed=False] _________________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
sandbox/test/test_pypy_interact.py .
========================== 1 passed in 24.81 seconds ===========================
++ 03:28:48 starting tool/release/test [142 started in total]
__ tool/release/test [139 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
tool/release/test/test_package.py ....s
tool/release/test/test_smartstrip.py ...
===================== 7 passed, 1 skipped in 26.43 seconds =====================
++ 03:29:16 starting tool/test [143 started in total]
__ tool/test [140 done in total, somefailed=False] ____________________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 29 items
tool/test/test_gdb_pypy.py ...........
tool/test/test_getdocstrings.py ...
tool/test/test_isolate.py .......
tool/test/test_lib_pypy.py ...
tool/test/test_license.py .
tool/test/test_package.py .
tool/test/test_tab.py ..
tool/test/test_template.py .
========================== 29 passed in 14.42 seconds ==========================
__ module/thread/test [141 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 56 items
module/thread/test/test_fork.py s...
module/thread/test/test_gil.py ....
module/thread/test/test_import_lock.py .....
module/thread/test/test_local.py .......
module/thread/test/test_lock.py .....................
module/thread/test/test_thread.py ...............
==================== 55 passed, 1 skipped in 239.97 seconds ====================
__ tool/pytest/test [142 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
tool/pytest/test/test_appsupport.py .........
tool/pytest/test/test_astrewrite.py .....
tool/pytest/test/test_conftest1.py ...xx
tool/pytest/test/test_pytestsupport.py ......
==================== 23 passed, 2 xfailed in 129.47 seconds ====================
__ objspace/std/test [143 done in total, somefailed=True] _____________________
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/buildbot/slave/own-linux-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /buildbot/slave/own-linux-x86-64/build/pytest.pyc
rootdir: /buildbot/slave/own-linux-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2210 items
objspace/std/test/apptest_boolobject.py .........
objspace/std/test/apptest_callmethod.py ..........
objspace/std/test/apptest_complexobject.py ....................................
objspace/std/test/apptest_contains.py ..
objspace/std/test/apptest_instmethobject.py .....
objspace/std/test/apptest_intobject.py ..................................................
objspace/std/test/apptest_iterobject.py .....................
objspace/std/test/apptest_memoryobject.py ........
objspace/std/test/apptest_objectobject.py ..
objspace/std/test/apptest_operation.py .
objspace/std/test/apptest_sliceobject.py .........
objspace/std/test/apptest_specializedtuple.py ........................
objspace/std/test/apptest_stringformat.py .................s......s..................s........................
objspace/std/test/apptest_tuple.py ........................
objspace/std/test/apptest_typeobjject.py ..................................................................................................
objspace/std/test/apptest_unicode.py ...........................s..........................................................................................
objspace/std/test/apptest_userobject.py ........................
objspace/std/test/test_boolobject.py .......
objspace/std/test/test_bytearrayobject.py .....................................................................................
objspace/std/test/test_bytesobject.py ................................................................................s......................
objspace/std/test/test_callmethod.py ...
objspace/std/test/test_celldict.py ..........................................
objspace/std/test/test_complexobject.py ....
objspace/std/test/test_dictmultiobject.py .........s.s.........................................................s.........................................................s...........................................................................
objspace/std/test/test_dictproxy.py ................
objspace/std/test/test_floatobject.py ......................................................
objspace/std/test/test_identitydict.py .....
objspace/std/test/test_identityset.py .......
objspace/std/test/test_index.py ...................................
objspace/std/test/test_intobject.py ...........................................................
objspace/std/test/test_iterobject.py ....
objspace/std/test/test_jsondict.py ..........
objspace/std/test/test_kwargsdict.py ....................................
objspace/std/test/test_lengthhint.py .....................
objspace/std/test/test_listobject.py ..................................................................................................................
objspace/std/test/test_liststrategies.py ...................................................................s...................................................................
objspace/std/test/test_longobject.py ..............................................F.....
objspace/std/test/test_mapdict.py ..........................................................................................s.......................................................
objspace/std/test/test_memoryobject.py .............................................
objspace/std/test/test_methodcache.py .......
objspace/std/test/test_newformat.py ...................................................s...........
objspace/std/test/test_noneobject.py ...
objspace/std/test/test_obj.py .......................................
objspace/std/test/test_prebuiltint.py .............
objspace/std/test/test_proxy.py ssssssssssss
objspace/std/test/test_proxy_function.py ........
objspace/std/test/test_proxy_internals.py .......
objspace/std/test/test_proxy_iter.py .
objspace/std/test/test_proxy_object.py ..........
objspace/std/test/test_proxy_usercreated.py .
objspace/std/test/test_random_attr.py s....
objspace/std/test/test_setobject.py .................................................................................................
objspace/std/test/test_setstrategies.py ....s...ss...
objspace/std/test/test_sliceobject.py .....
objspace/std/test/test_smalllongobject.py ......................................................................................F........................................................
objspace/std/test/test_specialisedtupleobject.py ....................ss....
objspace/std/test/test_stdobjspace.py s........
objspace/std/test/test_translate.py .
objspace/std/test/test_typeobject.py ...................
objspace/std/test/test_unicodeobject.py .................
objspace/std/test/test_userobject.py .
objspace/std/test/test_versionedtype.py ...............
=================================== FAILURES ===================================
_______________________ AppTestLong.test_long_error_msg ________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000037155a60>
def test_long_error_msg(self):
e = raises(TypeError, int, [])
> assert str(e.value) == (
"int() argument must be a string, a bytes-like object "
"or a number, not 'list'")
E (application-level) AssertionError
[/buildbot/slave/own-linux-x86-64/build/pypy/objspace/std/test/test_longobject.py:519]:3: AssertionError
_____________________ AppTestSmallLong.test_long_error_msg _____________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000033e02a68>
def test_long_error_msg(self):
e = raises(TypeError, int, [])
> assert str(e.value) == (
"int() argument must be a string, a bytes-like object "
"or a number, not 'list'")
E (application-level) AssertionError
[/buildbot/slave/own-linux-x86-64/build/pypy/objspace/std/test/test_longobject.py:519]:3: AssertionError
=========================== short test summary info ============================
FAIL objspace/std/test/test_longobject.py::AppTestLong::()::test_long_error_msg
FAIL objspace/std/test/test_smalllongobject.py::AppTestSmallLong::()::test_long_error_msg
============= 2 failed, 2177 passed, 31 skipped in 290.53 seconds ==============
program finished with exit code 1
elapsedTime=3754.630082