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 /Users/matti/build-worker-x86_64/own-macos-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:
HOME=/Users/matti
HOMEBREW_CELLAR=/opt/homebrew_x86_64/Cellar
HOMEBREW_PREFIX=/opt/homebrew_x86_64
HOMEBREW_REPOSITORY=/opt/homebrew_x86_64
INFOPATH=/opt/homebrew_x86_64/share/info:
LANG=en_US.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LOGNAME=matti
OLDPWD=/Users/matti
PATH=/Users/matti/oss/pypy-x86_64-buildbot/bin:/opt/homebrew_x86_64/bin:/opt/homebrew_x86_64/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
PKG_CONFIG_PATH=/opt/homebrew_x86_64/opt/openssl@1.1/lib/pkgconfig
PWD=/Users/matti/build-worker-x86_64/own-macos-x86-64/build
PYPYCHERRYPICK=
PYPY_USESSION_DIR=/tmp/buildbot-x86_64
PYTHONPATH=.:
SHELL=/bin/zsh
SHLVL=2
SSH_CLIENT=10.0.0.17 59930 22
SSH_CONNECTION=10.0.0.17 59930 10.0.0.16 22
SSH_TTY=/dev/ttys000
TERM=xterm-256color
TMPDIR=/tmp/buildbot-x86_64/pytest
USER=matti
_=/Users/matti/oss/pypy-x86_64-buildbot/bin/buildslave
using PTY: False
using config pypy/testrunner_cfg.py
using config /Users/matti/machine_cfg.py
running 3 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/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_extra.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
-- module/_hpy_universal/test/_vendored/test_hpyfield.py
-- 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
-- module/_hpy_universal/test/_vendored/test_hpytype_legacy.py
-- module/_hpy_universal/test/_vendored/test_hpyunicode.py
-- module/_hpy_universal/test/_vendored/test_importing.py
-- module/_hpy_universal/test/_vendored/test_legacy_forbidden.py
-- 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
-- module/_hpy_universal/test/_vendored/test_support.py
-- module/_hpy_universal/test/_vendored/test_tracker.py
-- 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_typedeallocate.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: 178 to run
++ 07:32:28 starting config/test [1 started in total]
++ 07:32:28 starting interpreter/astcompiler/test [2 started in total]
++ 07:32:28 starting interpreter/pyparser/test [3 started in total]
__ config/test [1 done in total, somefailed=False] ____________________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 162 items / 1 skipped
config/test/test_pypyoption.py ..................................................................................................................................................................
==================== 162 passed, 1 skipped in 33.89 seconds ====================
++ 07:33:06 starting interpreter/test [4 started in total]
__ interpreter/pyparser/test [2 done in total, somefailed=False] ______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 243 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 .....................................................................
========================= 243 passed in 106.05 seconds =========================
++ 07:34:17 starting module/__builtin__/test [5 started in total]
__ module/__builtin__/test [3 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 324 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 .
==================== 323 passed, 1 skipped in 95.13 seconds ====================
++ 07:35:59 starting module/__pypy__/test [6 started in total]
__ interpreter/astcompiler/test [4 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.py
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1566 items
interpreter/astcompiler/test/apptest_compiler.py ....................
interpreter/astcompiler/test/apptest_exceptiongroup.py .........................
interpreter/astcompiler/test/apptest_fstring.py ...............................
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 .....................................................
======================== 1566 passed in 212.59 seconds =========================
++ 07:36:05 starting module/_abc/test [7 started in total]
__ module/_abc/test [5 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 37.12 seconds ===========================
++ 07:36:49 starting module/_ast/test [8 started in total]
__ module/__pypy__/test [6 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 71.84 seconds =====================
++ 07:37:12 starting module/_cffi_backend/test [9 started in total]
__ module/_ast/test [7 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 85.12 seconds ==========================
++ 07:38:17 starting module/_codecs/test [10 started in total]
__ module/_codecs/test [8 done in total, somefailed=True] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 99 items
module/_codecs/test/apptest_codecs.py ..
module/_codecs/test/test_codecs.py .....................sss...........................................................s......
module/_codecs/test/test_locale.py ...FF.
module/_codecs/test/test_ztranslation.py .
=================================== FAILURES ===================================
__________ TestLocaleCodec.test_decode_locale_latin1[locale_decoder0] __________
self = <pypy.module._codecs.test.test_locale.TestLocaleCodec object at 0x00007fb82b156d78>
locale_decoder = <function str_decode_locale_surrogateescape at 0x00007fb819189628>
@pytest.mark.parametrize('locale_decoder',
(str_decode_locale_surrogateescape, str_decode_locale_strict))
def test_decode_locale_latin1(self, locale_decoder):
self.setlocale("fr_FR")
uni = u"août"
string = uni.encode('latin1')
> assert locale_decoder(string) == (uni.encode('utf8'), len(uni))
E assert ('ao\xed\xb3\xbbt', 4) == ('ao\xc3\xbbt', 4)
E At index 0 diff: 'ao\xed\xb3\xbbt' != 'ao\xc3\xbbt'
E Use -v to get the full diff
module/_codecs/test/test_locale.py:77: AssertionError
__________ TestLocaleCodec.test_decode_locale_latin1[locale_decoder1] __________
self = <pypy.module._codecs.test.test_locale.TestLocaleCodec object at 0x00007fb7cabc8f38>
locale_decoder = <function str_decode_locale_strict at 0x00007fb8191899e8>
@pytest.mark.parametrize('locale_decoder',
(str_decode_locale_surrogateescape, str_decode_locale_strict))
def test_decode_locale_latin1(self, locale_decoder):
self.setlocale("fr_FR")
uni = u"août"
string = uni.encode('latin1')
> assert locale_decoder(string) == (uni.encode('utf8'), len(uni))
module/_codecs/test/test_locale.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module/_codecs/locale.py:118: in str_decode_locale_strict
errorhandler('strict', 'filesystemencoding', errmsg, s, 0, 1)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
errors = 'strict', encoding = 'filesystemencoding'
msg = 'pypy_char2wchar_strict failed', s = 'ao\xfbt', startingpos = 0
endingpos = 1
def default_unicode_error_decode(errors, encoding, msg, s,
startingpos, endingpos):
assert endingpos >= 0
if errors == 'replace':
return u'\ufffd', endingpos
if errors == 'ignore':
return u'', endingpos
> raise UnicodeDecodeError(encoding, s, startingpos, endingpos, msg)
E UnicodeDecodeError: 'filesystemencoding' codec can't decode byte 0x61 in position 0: pypy_char2wchar_strict failed
../rpython/rlib/runicode.py:107: UnicodeDecodeError
=========================== short test summary info ============================
FAIL module/_codecs/test/test_locale.py::TestLocaleCodec::()::test_decode_locale_latin1[locale_decoder0]
FAIL module/_codecs/test/test_locale.py::TestLocaleCodec::()::test_decode_locale_latin1[locale_decoder1]
=============== 2 failed, 93 passed, 4 skipped in 138.43 seconds ===============
++ 07:40:42 starting module/_collections/test [11 started in total]
__ module/_collections/test [9 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 63.99 seconds ==========================
++ 07:41:48 starting module/_continuation/test [12 started in total]
__ module/_cffi_backend/test [10 done in total, somefailed=True] ______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 468 items
module/_cffi_backend/test/test_c.py ................................................................................sss.s....................................................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 ...F................
module/_cffi_backend/test/test_recompiler.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
module/_cffi_backend/test/test_unicode_literals.py .......
module/_cffi_backend/test/test_wchar_helper.py .
module/_cffi_backend/test/test_ztranslation.py s
=================================== FAILURES ===================================
_________________ AppTestRecompilerPython.test_dlopen_unicode __________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fcd33c244b8>
def test_dlopen_unicode(self):
if not getattr(self, 'extmodU', None):
skip("no unicode file name")
import _cffi_backend, sys
sys.pypy_initfsencoding() # initialize space.sys.filesystemencoding
self.fix_path()
from re_python_pysrc import ffi
> lib = ffi.dlopen(self.extmodU)
E (application-level) OSError: Cannot load library /tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xE9.so: "Cannot load library /tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so: dlopen(/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so, 0x0002): tried: '/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file), '/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file), '/private/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file), '/private/tmp/buildbot-x86_64/usession-py3.12-1562/load_caf\xe9.so' (no such file)"
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_cffi_backend/test/test_re_python.py:139]:8: OSError
=========================== short test summary info ============================
FAIL module/_cffi_backend/test/test_re_python.py::AppTestRecompilerPython::()::test_dlopen_unicode
============= 1 failed, 330 passed, 137 skipped in 294.50 seconds ==============
++ 07:42:08 starting module/_cppyy/test [13 started in total]
__ module/_cppyy/test [11 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.01 seconds =========================
++ 07:42:11 starting module/_csv/test [14 started in total]
__ module/_continuation/test [12 done in total, somefailed=False] _____________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 63.30 seconds =====================
++ 07:42:53 starting module/_demo/test [15 started in total]
__ module/_csv/test [13 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 64.34 seconds ==========================
++ 07:43:17 starting module/_hpy_universal/test/_vendored/test_00_basic.py [16 started in total]
__ module/_hpy_universal/test/_vendored/test_00_basic.py [14 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:20 starting module/_hpy_universal/test/_vendored/test_argparse.py [17 started in total]
__ module/_demo/test [15 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 25.10 seconds ===========================
++ 07:43:21 starting module/_hpy_universal/test/_vendored/test_call.py [18 started in total]
__ module/_hpy_universal/test/_vendored/test_argparse.py [16 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:23 starting module/_hpy_universal/test/_vendored/test_capsule.py [19 started in total]
__ module/_hpy_universal/test/_vendored/test_call.py [17 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:24 starting module/_hpy_universal/test/_vendored/test_capsule_legacy.py [20 started in total]
__ module/_hpy_universal/test/_vendored/test_capsule.py [18 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:25 starting module/_hpy_universal/test/_vendored/test_contextvar.py [21 started in total]
__ module/_hpy_universal/test/_vendored/test_capsule_legacy.py [19 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:27 starting module/_hpy_universal/test/_vendored/test_cpy_compat.py [22 started in total]
__ module/_hpy_universal/test/_vendored/test_contextvar.py [20 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:28 starting module/_hpy_universal/test/_vendored/test_eval.py [23 started in total]
__ module/_hpy_universal/test/_vendored/test_cpy_compat.py [21 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:29 starting module/_hpy_universal/test/_vendored/test_extra.py [24 started in total]
__ module/_hpy_universal/test/_vendored/test_eval.py [22 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:30 starting module/_hpy_universal/test/_vendored/test_helpers.py [25 started in total]
__ module/_hpy_universal/test/_vendored/test_extra.py [23 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:32 starting module/_hpy_universal/test/_vendored/test_hpybuildvalue.py [26 started in total]
__ module/_hpy_universal/test/_vendored/test_helpers.py [24 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:33 starting module/_hpy_universal/test/_vendored/test_hpybytes.py [27 started in total]
__ module/_hpy_universal/test/_vendored/test_hpybuildvalue.py [25 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:35 starting module/_hpy_universal/test/_vendored/test_hpydict.py [28 started in total]
__ module/_hpy_universal/test/_vendored/test_hpybytes.py [26 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:35 starting module/_hpy_universal/test/_vendored/test_hpyerr.py [29 started in total]
__ module/_hpy_universal/test/_vendored/test_hpydict.py [27 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:38 starting module/_hpy_universal/test/_vendored/test_hpyfield.py [30 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyerr.py [28 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:38 starting module/_hpy_universal/test/_vendored/test_hpyglobal.py [31 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyfield.py [29 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:40 starting module/_hpy_universal/test/_vendored/test_hpyimport.py [32 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyglobal.py [30 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:40 starting module/_hpy_universal/test/_vendored/test_hpyiter.py [33 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyimport.py [31 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:43 starting module/_hpy_universal/test/_vendored/test_hpylist.py [34 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyiter.py [32 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:43 starting module/_hpy_universal/test/_vendored/test_hpylong.py [35 started in total]
__ module/_hpy_universal/test/_vendored/test_hpylist.py [33 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:45 starting module/_hpy_universal/test/_vendored/test_hpymodule.py [36 started in total]
__ module/_hpy_universal/test/_vendored/test_hpylong.py [34 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:45 starting module/_hpy_universal/test/_vendored/test_hpyslice.py [37 started in total]
__ module/_hpy_universal/test/_vendored/test_hpymodule.py [35 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:48 starting module/_hpy_universal/test/_vendored/test_hpystructseq.py [38 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyslice.py [36 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:48 starting module/_hpy_universal/test/_vendored/test_hpytuple.py [39 started in total]
__ module/_hpy_universal/test/_vendored/test_hpystructseq.py [37 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:50 starting module/_hpy_universal/test/_vendored/test_hpytype.py [40 started in total]
__ module/_hpy_universal/test/_vendored/test_hpytuple.py [38 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:51 starting module/_hpy_universal/test/_vendored/test_hpytype_legacy.py [41 started in total]
__ module/_hpy_universal/test/_vendored/test_hpytype.py [39 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:53 starting module/_hpy_universal/test/_vendored/test_hpyunicode.py [42 started in total]
__ module/_hpy_universal/test/_vendored/test_hpytype_legacy.py [40 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:53 starting module/_hpy_universal/test/_vendored/test_importing.py [43 started in total]
__ module/_hpy_universal/test/_vendored/test_hpyunicode.py [41 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:55 starting module/_hpy_universal/test/_vendored/test_legacy_forbidden.py [44 started in total]
__ module/_hpy_universal/test/_vendored/test_importing.py [42 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:56 starting module/_hpy_universal/test/_vendored/test_number.py [45 started in total]
__ module/_hpy_universal/test/_vendored/test_legacy_forbidden.py [43 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:58 starting module/_hpy_universal/test/_vendored/test_object.py [46 started in total]
__ module/_hpy_universal/test/_vendored/test_number.py [44 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:43:58 starting module/_hpy_universal/test/_vendored/test_slots.py [47 started in total]
__ module/_hpy_universal/test/_vendored/test_object.py [45 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:00 starting module/_hpy_universal/test/_vendored/test_slots_legacy.py [48 started in total]
__ module/_hpy_universal/test/_vendored/test_slots.py [46 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:01 starting module/_hpy_universal/test/_vendored/test_support.py [49 started in total]
__ module/_hpy_universal/test/_vendored/test_slots_legacy.py [47 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:03 starting module/_hpy_universal/test/_vendored/test_tracker.py [50 started in total]
__ module/_hpy_universal/test/_vendored/test_support.py [48 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:03 starting module/_hpy_universal/test/pypy [51 started in total]
__ module/_hpy_universal/test/_vendored/test_tracker.py [49 done in total, somefailed=True]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:06 starting module/_io/test [52 started in total]
__ module/_hpy_universal/test/pypy [50 done in total, somefailed=True] ________
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/main.py", line 109, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/conftest.py", line 145, in pytest_sessionstart
INTERNALERROR> from pypy.module._hpy_universal.test import support as _support
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/_hpy_universal/test/support.py", line 6, in <module>
INTERNALERROR> from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/test/test_cpyext.py", line 9, in <module>
INTERNALERROR> from pypy.module.cpyext import api
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/cpyext/api.py", line 29, in <module>
INTERNALERROR> from pypy.interpreter.generator import GeneratorIterator
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/generator.py", line 3, in <module>
INTERNALERROR> from pypy.interpreter.pyopcode import SApplicationException, Yield
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyopcode.py", line 15, in <module>
INTERNALERROR> from pypy.interpreter import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pyframe.py", line 22, in <module>
INTERNALERROR> from pypy.interpreter.pymonitoring import (
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/pymonitoring.py", line 5, in <module>
INTERNALERROR> from pypy.interpreter.typedef import TypeDef
INTERNALERROR> File "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/typedef.py", line 574, in <module>
INTERNALERROR> from pypy.interpreter.pyframe import PyFrame
INTERNALERROR> ImportError: cannot import name 'PyFrame'
++ 07:44:06 starting module/_jitlog/test [53 started in total]
__ module/_jitlog/test [51 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/_jitlog/test/test__jitlog.py .
========================== 1 passed in 29.95 seconds ===========================
++ 07:44:38 starting module/_locale/test [54 started in total]
__ module/_locale/test [52 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
module/_locale/test/test_locale.py ssssssssssssss.
==================== 1 passed, 14 skipped in 32.27 seconds =====================
++ 07:45:16 starting module/_lsprof/test [55 started in total]
__ module/_lsprof/test [53 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/_lsprof/test/test_cprofile.py ......
========================== 6 passed in 21.44 seconds ===========================
++ 07:45:40 starting module/_md5/test [56 started in total]
__ module/_md5/test [54 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/_md5/test/test_md5.py ........
========================== 8 passed in 16.65 seconds ===========================
++ 07:46:01 starting module/_minimal_curses/test [57 started in total]
__ interpreter/test [55 done in total, somefailed=True] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
PYTHON3: /opt/homebrew_x86_64/bin/python3.12
(Version 3.12.6 (main, Sep 6 2024, 19:03:47) [Clang 15.0.0 (clang-1500.3.9.4)])
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1394 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_compiler.py .......................F............................................................................
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 F..
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_monitoring.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.
=================================== FAILURES ===================================
___________________________ test_dont_share_lambdas ____________________________
def test_dont_share_lambdas():
if not IS_PYPY:
skip("pypy-only optimization")
# the two lambdas's codes aren't shared (CPython does that but it's
# completely pointless: it only applies to identical lambdas that are
# defined on the same line)
code = compile("x = lambda: 0; y = lambda: 0", "<test>", "exec")
consts = code.co_consts
x, y, z = consts
assert isinstance(x, type(code)) and isinstance(y, type(code))
assert x is not y
> assert x == y
E (application-level) AssertionError: assert <code object <lambda> at 0x00007fcc103e1f30, file "<test>", line 1> == <code object <lambda> at 0x00007fcc103e1fa0, file "<test>", line 1>
interpreter/test/apptest_compiler.py:216: AssertionError
_____________________ TestFSEncode.test_fsencode_fsdecode ______________________
self = <pypy.interpreter.test.test_fsencode.TestFSEncode instance at 0x00007fcc2456bbe0>
def test_fsencode_fsdecode(self):
space = self.space
strs = [u"/home/bar/baz", u"c:\\"]
if self.special_char:
strs.append(self.special_char)
for st in strs:
# check roundtrip
w_st = space.newtext(st.encode('utf8'), len(st))
w_enc = space.fsencode(w_st)
w_st2 = space.fsdecode(w_enc)
assert space.eq_w(w_st, w_st2)
> assert space.fsdecode_w(w_enc) == st
E assert 'a\xcc\x88' == u'a\u0308'
E - a\xcc\x88
E + a\u0308
interpreter/test/test_fsencode.py:77: AssertionError
----------------------------- Captured stderr call -----------------------------
/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/test/test_fsencode.py:77: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
assert space.fsdecode_w(w_enc) == st
/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/test/test_fsencode.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
import sys
=========================== short test summary info ============================
FAIL interpreter/test/apptest_compiler.py::test_dont_share_lambdas
FAIL interpreter/test/test_fsencode.py::TestFSEncode::()::test_fsencode_fsdecode
======== 2 failed, 1372 passed, 19 skipped, 1 xpassed in 797.86 seconds ========
++ 07:46:27 starting module/_multibytecodec/test [58 started in total]
__ module/_multibytecodec/test [56 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 69.05 seconds =====================
++ 07:47:40 starting module/_multiprocessing/test [59 started in total]
__ module/_io/test [57 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 287 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 .........
=================== 284 passed, 4 skipped in 219.94 seconds ====================
++ 07:47:50 starting module/_opcode/test [60 started in total]
__ module/_opcode/test [58 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/_opcode/test/apptest_opcode.py .....
========================== 5 passed in 28.85 seconds ===========================
++ 07:48:23 starting module/_pickle/test [61 started in total]
__ module/_multiprocessing/test [59 done in total, somefailed=False] __________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
module/_multiprocessing/test/test_interp_semaphore.py s
module/_multiprocessing/test/test_semaphore.py ...sssss.s
module/_multiprocessing/test/test_win32.py s
module/_multiprocessing/test/test_ztranslation.py .
===================== 5 passed, 8 skipped in 48.54 seconds =====================
++ 07:48:31 starting module/_pickle_support/test [62 started in total]
__ module/_pickle_support/test [60 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 17.40 seconds ===========================
++ 07:48:52 starting module/_posixsubprocess/test [63 started in total]
__ module/_minimal_curses/test [61 done in total, somefailed=False] ___________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/_minimal_curses/test/test_curses.py ......
========================== 6 passed in 174.22 seconds ==========================
++ 07:49:02 starting module/_pypyjson/test [64 started in total]
__ module/_pypyjson/test [62 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 64.52 seconds ==========================
++ 07:50:08 starting module/_random/test [65 started in total]
__ module/_pickle/test [63 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 119.77 seconds ====================
++ 07:50:26 starting module/_rawffi/alt/test [66 started in total]
__ module/_random/test [64 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 42.19 seconds ==========================
++ 07:50:52 starting module/_rawffi/test [67 started in total]
__ module/_posixsubprocess/test [65 done in total, somefailed=True] ___________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/_posixsubprocess/test/apptest_subprocess.py ........F
module/_posixsubprocess/test/test_ztranslation.py .
=================================== FAILURES ===================================
_____________________________ test_restore_signals _____________________________
def test_restore_signals():
import posix as os
# Copied from lib-python/3/subprocess._execute_child
# when calling subprocess.check_output(['cat', '/proc/self/status'],
# restore_signals=True, universal_newlines=True)
def check_output(restore_signals):
c2pread, c2pwrite = os.pipe()
errpipe_read, errpipe_write = os.pipe()
try:
low_fds_to_close = []
while errpipe_write < 3:
low_fds_to_close.append(errpipe_write)
errpipe_write = os.dup(errpipe_write)
for low_fd in low_fds_to_close:
os.close(low_fd)
args = [b'cat', b'/proc/self/status']
executable_list=[b'/usr/bin/cat']
close_fds = True
fds_to_keep = (errpipe_write,)
cwd = None
env_list = None
p2cread = p2cwrite = -1
errread = errwrite = umask = -1
call_setsid = False
pgid_to_set = -1
preexec_fn = None
gid = gids = uid = None
pid = _posixsubprocess.fork_exec(args, executable_list, close_fds,
fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite, errpipe_read,
errpipe_write, restore_signals, call_setsid, pgid_to_set,
gid, gids, uid, umask,
preexec_fn, subprocess._USE_VFORK)
os.close(errpipe_write)
# Wait for exec to fail or succeed; possibly raising an
# exception (limited in size)
errpipe_data = bytearray()
while True:
part = os.read(errpipe_read, 50000)
errpipe_data += part
if not part or len(errpipe_data) > 50000:
break
if errpipe_data:
newpid, sts = os.waitpid(pid, 0)
raise RuntimeError('running commande returned %s' % sts)
out = os.read(c2pread, 50000)
finally:
os.close(c2pwrite)
os.close(c2pread)
os.close(errpipe_read)
return out
sig_ign_mask1 = ''
sig_ign_mask2 = ''
> for line in check_output(True).splitlines():
module/_posixsubprocess/test/apptest_subprocess.py:282:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
restore_signals = W_BoolObject(True)
def check_output(restore_signals):
c2pread, c2pwrite = os.pipe()
errpipe_read, errpipe_write = os.pipe()
try:
low_fds_to_close = []
while errpipe_write < 3:
low_fds_to_close.append(errpipe_write)
errpipe_write = os.dup(errpipe_write)
for low_fd in low_fds_to_close:
os.close(low_fd)
args = [b'cat', b'/proc/self/status']
executable_list=[b'/usr/bin/cat']
close_fds = True
fds_to_keep = (errpipe_write,)
cwd = None
env_list = None
p2cread = p2cwrite = -1
errread = errwrite = umask = -1
call_setsid = False
pgid_to_set = -1
preexec_fn = None
gid = gids = uid = None
pid = _posixsubprocess.fork_exec(args, executable_list, close_fds,
fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite, errpipe_read,
errpipe_write, restore_signals, call_setsid, pgid_to_set,
gid, gids, uid, umask,
preexec_fn, subprocess._USE_VFORK)
os.close(errpipe_write)
# Wait for exec to fail or succeed; possibly raising an
# exception (limited in size)
errpipe_data = bytearray()
while True:
part = os.read(errpipe_read, 50000)
errpipe_data += part
if not part or len(errpipe_data) > 50000:
break
if errpipe_data:
newpid, sts = os.waitpid(pid, 0)
> raise RuntimeError('running commande returned %s' % sts)
E (application-level) RuntimeError: running commande returned 65280
module/_posixsubprocess/test/apptest_subprocess.py:272: RuntimeError
=========================== short test summary info ============================
FAIL module/_posixsubprocess/test/apptest_subprocess.py::test_restore_signals
===================== 1 failed, 9 passed in 117.74 seconds =====================
++ 07:50:55 starting module/_socket/test [68 started in total]
__ module/_rawffi/alt/test [66 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 28.25 seconds =====================
++ 07:50:59 starting module/_sre/test [69 started in total]
__ module/_sre/test [67 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 ..............................
module/_sre/test/test_sre_buf.py ............................
========================= 163 passed in 102.06 seconds =========================
++ 07:52:48 starting module/_vmprof/test [70 started in total]
__ module/_rawffi/test [68 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 123.66 seconds ====================
n: 2
Arg 0: 3
Arg 1: 15
++ 07:53:03 starting module/_warnings/test [71 started in total]
__ module/_vmprof/test [69 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 52.85 seconds =====================
++ 07:53:46 starting module/_weakref/test [72 started in total]
__ module/_warnings/test [70 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
module/_warnings/test/apptest_warnings.py ........s.s..........
module/_warnings/test/test_warnings.py .
==================== 20 passed, 2 skipped in 41.66 seconds =====================
++ 07:53:47 starting module/_winreg/test [73 started in total]
__ module/_winreg/test [71 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.28 seconds ===========================
++ 07:53:49 starting module/array/test [74 started in total]
__ module/_socket/test [72 done in total, somefailed=True] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 87 items
module/_socket/test/apptest_socket.py .....................ss..s............s.ss...........F...sssss
module/_socket/test/test_sock_app.py ....................s...
module/_socket/test/test_ztranslation.py .
=================================== FAILURES ===================================
___________________________ test_tcp_bytearray_name ____________________________
def test_tcp_bytearray_name():
import _socket as socket
if not hasattr(socket, 'AF_UNIX'):
pytest.skip('AF_UNIX not supported.')
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
> s.bind(bytearray(b"\x00python\x00test\x00"))
E (application-level) FileNotFoundError: [Errno 2] No such file or directory
module/_socket/test/apptest_socket.py:847: OSError
=========================== short test summary info ============================
FAIL module/_socket/test/apptest_socket.py::test_tcp_bytearray_name
============== 1 failed, 74 passed, 12 skipped in 200.12 seconds ===============
++ 07:54:18 starting module/atexit/test [75 started in total]
__ module/atexit/test [73 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/atexit/test/apptest_atexit.py ..
========================== 2 passed in 34.67 seconds ===========================
++ 07:54:56 starting module/binascii/test [76 started in total]
__ module/_weakref/test [74 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 43 items
module/_weakref/test/apptest_weakref.py ...........................................
========================== 43 passed in 65.08 seconds ==========================
++ 07:54:59 starting module/bz2/test [77 started in total]
__ module/binascii/test [75 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items
module/binascii/test/test_binascii.py ..................
========================== 18 passed in 37.91 seconds ==========================
++ 07:55:40 starting module/cmath/test [78 started in total]
__ module/array/test [76 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 126.66 seconds ====================
++ 07:55:59 starting module/cpyext/test/test_api.py [79 started in total]
__ module/cmath/test [77 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items
module/cmath/test/test_cmath.py ..................
========================== 18 passed in 20.22 seconds ==========================
++ 07:56:04 starting module/cpyext/test/test_arraymodule.py [80 started in total]
__ module/bz2/test [78 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 93.39 seconds =====================
++ 07:56:34 starting module/cpyext/test/test_async_iter.py [81 started in total]
__ module/cpyext/test/test_api.py [79 done in total, somefailed=False] ________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_api.py ....
========================== 4 passed in 92.40 seconds ===========================
++ 07:57:56 starting module/cpyext/test/test_boolobject.py [82 started in total]
__ module/cpyext/test/test_async_iter.py [80 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 84.54 seconds ==========================
++ 07:58:23 starting module/cpyext/test/test_borrow.py [83 started in total]
__ module/cpyext/test/test_arraymodule.py [81 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 178.09 seconds ====================
++ 07:59:27 starting module/cpyext/test/test_buffer.py [84 started in total]
__ module/cpyext/test/test_boolobject.py [82 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_boolobject.py ....
========================== 4 passed in 131.25 seconds ==========================
++ 08:00:28 starting module/cpyext/test/test_bytearrayobject.py [85 started in total]
__ module/cpyext/test/test_borrow.py [83 done in total, somefailed=False] _____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_borrow.py ...
========================== 3 passed in 127.77 seconds ==========================
++ 08:00:55 starting module/cpyext/test/test_bytesobject.py [86 started in total]
__ module/cpyext/test/test_buffer.py [84 done in total, somefailed=False] _____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_buffer.py ......
========================== 6 passed in 142.95 seconds ==========================
++ 08:02:13 starting module/cpyext/test/test_capsule.py [87 started in total]
__ module/cpyext/test/test_bytearrayobject.py [85 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_bytearrayobject.py ......
========================== 6 passed in 132.78 seconds ==========================
++ 08:03:07 starting module/cpyext/test/test_cell.py [88 started in total]
__ module/cpyext/test/test_bytesobject.py [86 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_bytesobject.py ....................
========================= 20 passed in 166.47 seconds ==========================
++ 08:04:03 starting module/cpyext/test/test_classobject.py [89 started in total]
__ module/cpyext/test/test_capsule.py [87 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_capsule.py ...
========================== 3 passed in 134.11 seconds ==========================
++ 08:04:53 starting module/cpyext/test/test_codecs.py [90 started in total]
__ module/cpyext/test/test_cell.py [88 done in total, somefailed=False] _______
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_cell.py .
========================== 1 passed in 119.45 seconds ==========================
++ 08:05:25 starting module/cpyext/test/test_complexobject.py [91 started in total]
__ module/cpyext/test/test_classobject.py [89 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/cpyext/test/test_classobject.py ..
========================== 2 passed in 123.76 seconds ==========================
++ 08:06:29 starting module/cpyext/test/test_contextvars.py [92 started in total]
__ module/cpyext/test/test_codecs.py [90 done in total, somefailed=False] _____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_codecs.py ...
========================== 3 passed in 129.52 seconds ==========================
++ 08:07:25 starting module/cpyext/test/test_cpyext.py [93 started in total]
__ module/cpyext/test/test_complexobject.py [91 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_complexobject.py ......
========================== 6 passed in 137.12 seconds ==========================
++ 08:08:05 starting module/cpyext/test/test_datetime.py [94 started in total]
__ module/cpyext/test/test_contextvars.py [92 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_contextvars.py .
========================== 1 passed in 133.93 seconds ==========================
++ 08:09:08 starting module/cpyext/test/test_dictobject.py [95 started in total]
__ module/cpyext/test/test_cpyext.py [93 done in total, somefailed=False] _____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
module/cpyext/test/test_cpyext.py ..s........s..............
==================== 24 passed, 2 skipped in 195.26 seconds ====================
++ 08:11:02 starting module/cpyext/test/test_eval.py [96 started in total]
__ module/cpyext/test/test_datetime.py [94 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
module/cpyext/test/test_datetime.py ................
========================= 16 passed in 175.89 seconds ==========================
++ 08:11:27 starting module/cpyext/test/test_exception.py [97 started in total]
__ module/cpyext/test/test_dictobject.py [95 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 19 items
module/cpyext/test/test_dictobject.py ...................
========================= 19 passed in 175.71 seconds ==========================
++ 08:12:24 starting module/cpyext/test/test_fileobject.py [98 started in total]
__ module/cpyext/test/test_exception.py [96 done in total, somefailed=False] __
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_exception.py ........
========================== 8 passed in 148.85 seconds ==========================
++ 08:14:21 starting module/cpyext/test/test_floatobject.py [99 started in total]
__ module/cpyext/test/test_fileobject.py [97 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_fileobject.py .
========================== 1 passed in 125.77 seconds ==========================
++ 08:14:49 starting module/cpyext/test/test_frameobject.py [100 started in total]
__ module/cpyext/test/test_eval.py [98 done in total, somefailed=False] _______
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_eval.py ................x...
==================== 19 passed, 1 xfailed in 210.16 seconds ====================
++ 08:15:01 starting module/cpyext/test/test_funcobject.py [101 started in total]
__ module/cpyext/test/test_frameobject.py [99 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_frameobject.py .....
========================== 5 passed in 137.58 seconds ==========================
++ 08:17:28 starting module/cpyext/test/test_genobject.py [102 started in total]
__ module/cpyext/test/test_floatobject.py [100 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_floatobject.py ..............
========================= 14 passed in 166.02 seconds ==========================
++ 08:17:30 starting module/cpyext/test/test_getargs.py [103 started in total]
__ module/cpyext/test/test_funcobject.py [101 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_funcobject.py ..............
========================= 14 passed in 177.83 seconds ==========================
++ 08:18:24 starting module/cpyext/test/test_import.py [104 started in total]
__ module/cpyext/test/test_genobject.py [102 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
module/cpyext/test/test_genobject.py ....
========================== 4 passed in 160.22 seconds ==========================
++ 08:20:29 starting module/cpyext/test/test_iterator.py [105 started in total]
__ module/cpyext/test/test_getargs.py [103 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
module/cpyext/test/test_getargs.py ................
========================= 16 passed in 167.15 seconds ==========================
++ 08:20:38 starting module/cpyext/test/test_listobject.py [106 started in total]
__ module/cpyext/test/test_import.py [104 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_import.py ........
========================== 8 passed in 172.06 seconds ==========================
++ 08:21:39 starting module/cpyext/test/test_longobject.py [107 started in total]
__ module/cpyext/test/test_iterator.py [105 done in total, somefailed=False] __
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
module/cpyext/test/test_iterator.py ......
========================== 6 passed in 134.86 seconds ==========================
++ 08:23:09 starting module/cpyext/test/test_mapping.py [108 started in total]
__ module/cpyext/test/test_listobject.py [106 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/cpyext/test/test_listobject.py ..............
========================= 14 passed in 156.10 seconds ==========================
++ 08:23:39 starting module/cpyext/test/test_marshal.py [109 started in total]
__ module/cpyext/test/test_longobject.py [107 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
module/cpyext/test/test_longobject.py .........................
========================= 25 passed in 187.58 seconds ==========================
++ 08:25:09 starting module/cpyext/test/test_memoryobject.py [110 started in total]
__ module/cpyext/test/test_mapping.py [108 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_mapping.py .....
========================== 5 passed in 100.83 seconds ==========================
++ 08:25:12 starting module/cpyext/test/test_methodobject.py [111 started in total]
__ module/cpyext/test/test_marshal.py [109 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
module/cpyext/test/test_marshal.py ..
========================== 2 passed in 129.49 seconds ==========================
++ 08:26:11 starting module/cpyext/test/test_misc.py [112 started in total]
__ module/cpyext/test/test_methodobject.py [110 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
module/cpyext/test/test_methodobject.py ...............
========================= 15 passed in 162.70 seconds ==========================
++ 08:28:20 starting module/cpyext/test/test_module.py [113 started in total]
__ module/cpyext/test/test_memoryobject.py [111 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
module/cpyext/test/test_memoryobject.py ...s...s.......
==================== 13 passed, 2 skipped in 170.96 seconds ====================
++ 08:28:25 starting module/cpyext/test/test_namespaceobject.py [114 started in total]
__ module/cpyext/test/test_misc.py [112 done in total, somefailed=False] ______
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_misc.py .
========================== 1 passed in 120.73 seconds ==========================
++ 08:28:36 starting module/cpyext/test/test_ndarrayobject.py [115 started in total]
__ module/cpyext/test/test_ndarrayobject.py [113 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.18 seconds ===========================
++ 08:29:00 starting module/cpyext/test/test_number.py [116 started in total]
__ module/cpyext/test/test_namespaceobject.py [114 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_namespaceobject.py .
========================== 1 passed in 121.11 seconds ==========================
++ 08:30:50 starting module/cpyext/test/test_object.py [117 started in total]
__ module/cpyext/test/test_module.py [115 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
module/cpyext/test/test_module.py .........................
========================= 25 passed in 181.59 seconds ==========================
++ 08:31:43 starting module/cpyext/test/test_pyerrors.py [118 started in total]
__ module/cpyext/test/test_number.py [116 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/cpyext/test/test_number.py .......
========================== 7 passed in 141.47 seconds ==========================
++ 08:31:47 starting module/cpyext/test/test_pyfile.py [119 started in total]
__ module/cpyext/test/test_pyfile.py [117 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 127.05 seconds =====================
++ 08:34:19 starting module/cpyext/test/test_pymem.py [120 started in total]
__ module/cpyext/test/test_object.py [118 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 246.80 seconds ====================
++ 08:35:25 starting module/cpyext/test/test_pysignals.py [121 started in total]
__ module/cpyext/test/test_pyerrors.py [119 done in total, somefailed=True] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 36 items
module/cpyext/test/test_pyerrors.py ........s........sF.......s...s.....
=================================== FAILURES ===================================
_______________ AppTestFetch.test_SetFromErrnoWithFilename_basic _______________
self = <CallInfo when='call' exception: 'ascii' codec can't encode character u'\u0308' in position 107: ordinal not in range(128)>
func = <function <lambda> at 0x00007f9f32fbc9f8>, 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_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>}
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 0x00007f9f3016c9f8>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f9f3231c2e0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>}
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 0x00007f9f3231c2e0>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>}
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_SetFromErrnoWithFilename_basic'>, '__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 0x00007f9f4339d740>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...name_basic'>, '__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 0x00007f9ee00489a0>
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 0x00007f9ee00489a0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...name_basic'>, '__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_SetFromErrnoWithFilename_basic'>, '__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 0x00007f9f4339d6f0>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...name_basic'>, '__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 0x00007f9ee0048960>
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 0x00007f9ee0048960>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...name_basic'>, '__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_SetFromErrnoWithFilename_basic'>, '__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_SetFromErrnoWithFilename_basic'>
def pytest_runtest_call(item):
try:
> item.runtest()
../_pytest/runner.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>
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:345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>
space = StdObjSpace
target = <function test_SetFromErrnoWithFilename_basic at 0x00007f9f32fbcbd8>
args = (StdObjSpace, <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9f027d0480>)
def execute_appex(self, space, target, *args):
self.space = space
space.getexecutioncontext().set_sys_exc_info(None)
try:
> target(*args)
tool/pytest/apptest.py:281:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9f027d0480>,)
w_func = <Function test_SetFromErrnoWithFilename_basic>
args = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9f027d0480>
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)
if not args_w:
return space.call_function(w_func)
else:
args = args_w[-1]
assert args is not None
if not isinstance(args, Arguments):
> return space.call_function(w_func, *args_w)
interpreter/gateway.py:1409:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace, w_func = <Function test_SetFromErrnoWithFilename_basic>
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9f027d0480>,)
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:1260:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function test_SetFromErrnoWithFilename_basic>
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9f027d0480>,)
gateway = <module 'pypy.interpreter.gateway' from '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/gateway.pyc'>
PyCode = <class 'pypy.interpreter.pycode.PyCode'>
code = <code object test_SetFromErrnoWithFilename_basic, file "[/Users/matti/build-wo.../own-macos-x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1>
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_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
name = 'test_SetFromErrnoWithFilename_basic'
qualname = 'test_SetFromErrnoWithFilename_basic'
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(None)
interpreter/pyframe.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
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)
if should_fire_local_any(self.space, self.getcode(), FRAME_ENTRY_EVENTS):
self._monitor_frame_entry(w_arg_or_err)
#
# 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:399:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
e = UnicodeEncodeError('ascii', u'\n errno = EBADF;\n ... return NULL;\n ', 107, 108, 'ordinal not in range(128)')
def _convert_unexpected_exception(self, e):
from pypy.interpreter import error
> operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:913:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
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)
if should_fire_local_any(self.space, self.getcode(), FRAME_ENTRY_EVENTS):
self._monitor_frame_entry(w_arg_or_err)
#
# 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:395:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
pycode = <code object test_SetFromErrnoWithFilename_basic, file "[/Users/matti/build-wo.../own-macos-x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1>
next_instr = 88
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f9f103c5bb0>
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:73:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
co_code = '|\x00j\x00}\x01|\x01d\x00u\x00r\td\x01}\x01d\x02d\x00l\x01}\x02d\x02d\x00l\x02}\x03d\x02d\x00l\x03}\x04d\x03d\x04d\x0...\x00\x82\x01|\x07j\tj\nd\x13k\x02\x90\x01s\x0cJ\x00\x82\x01|\x07j\tj\x14d\x14k\x02\x90\x01s\x15J\x00\x82\x01y\x00y\x00'
next_instr = 88
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f9f103c5bb0>
def handle_bytecode(self, co_code, next_instr, ec):
try:
> next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
co_code = '|\x00j\x00}\x01|\x01d\x00u\x00r\td\x01}\x01d\x02d\x00l\x01}\x02d\x02d\x00l\x02}\x03d\x02d\x00l\x03}\x04d\x03d\x04d\x0...\x00\x82\x01|\x07j\tj\nd\x13k\x02\x90\x01s\x0cJ\x00\x82\x01|\x07j\tj\x14d\x14k\x02\x90\x01s\x15J\x00\x82\x01y\x00y\x00'
next_instr = 102
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f9f103c5bb0>
@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)
pycode = self.getcode()
if should_fire_local_any(ec.space, pycode, LOCAL_LINE_INSTRUCTION_MASK):
self._monitor_line_and_instruction(pycode)
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:
if should_fire_local(ec.space, pycode, PY_RETURN):
dispatch_code_event(
ec.space, PY_RETURN, pycode, intmask(self.last_instr),
self.peekvalue())
self.frame_finished_execution = True # for generators
raise Return
elif opcode == opcodedesc.RETURN_CONST.index:
self.pushvalue(self.getconstant_w(oparg))
self.frame_finished_execution = True # for generators
raise Return
elif opcode == opcodedesc.JUMP_ABSOLUTE.index:
dest = self.jump_absolute(oparg, next_instr, ec)
self._monitor_branch(JUMP, dest)
return dest
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)
elif opcode == opcodedesc.CALL_METHOD_KW.index:
> self.CALL_METHOD_KW(oparg, next_instr)
interpreter/pyopcode.py:372:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_SetFromE...x86-64/build/pypy/module/cpyext/test/test_pyerrors.py:343]", line 1> at line 56
n_arguments = 2, ignored = (102,)
W_AbstractTupleObject = <class 'pypy.objspace.std.tupleobject.W_AbstractTupleObject'>
w_self = None, space = StdObjSpace
@jit.unroll_safe
def CALL_METHOD_KW(f, n_arguments, *ignored):
from pypy.objspace.std.tupleobject import W_AbstractTupleObject
# opargs contains the arg + kwarg count, excluding the implicit 'self'
w_self = f.peekvalue_maybe_none(n_arguments + 1)
space = f.space
# like in BUILD_CONST_KEY_MAP we can't use space.fixedview because then
# the immutability of the tuple is lost
w_tup_varnames = space.interp_w(W_AbstractTupleObject, f.popvalue())
n_keywords = space.len_w(w_tup_varnames)
keyword_names_w = [None] * n_keywords
keywords_w = [None] * n_keywords
for i in range(n_keywords):
keyword_names_w[i] = w_tup_varnames.getitem(space, i)
w_value = f.peekvalue(n_keywords - 1 - i)
keywords_w[i] = w_value
f.dropvalues(n_keywords)
n_arguments -= n_keywords
n = n_arguments + (w_self is not None)
arguments = f.popvalues(n) # includes w_self if it is not None
if w_self is None:
f.popvalue_maybe_none() # removes w_self, which is None
w_callable = f.popvalue()
args = f.argument_factory(
arguments, keyword_names_w, keywords_w, None, None,
methodcall=w_self is not None, w_function=w_callable)
if f.get_is_being_profiled() and function.is_builtin_code(w_callable):
w_result = f.space.call_args_and_c_profile(f, w_callable, args)
else:
> w_result = f.space.call_args(w_callable, args)
objspace/std/callmethod.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, w_obj = <FunctionWithFixedCode import_extension>
args = Arguments([W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.... '))])], ['prologue'], [W_UnicodeObject('#include <errno.h>')])
def call_args(space, w_obj, args):
# two special cases for performance
if isinstance(w_obj, Function):
> return w_obj.call_args(args)
objspace/descroperation.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <FunctionWithFixedCode import_extension>
args = Arguments([W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.... '))])], ['prologue'], [W_UnicodeObject('#include <errno.h>')])
def call_args(self, args):
# delegate activation to code
> w_res = self.getcode().funcrun(self, args)
interpreter/function.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode object at 0x00007f9f43bfea68>
func = <FunctionWithFixedCode import_extension>
args = Arguments([W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.... '))])], ['prologue'], [W_UnicodeObject('#include <errno.h>')])
def funcrun(self, func, args):
> return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:869:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.gateway.BuiltinCode object at 0x00007f9f43bfea68>
func = <FunctionWithFixedCode import_extension>, w_obj = None
args = Arguments([W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.... '))])], ['prologue'], [W_UnicodeObject('#include <errno.h>')])
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.BuiltinCode object at 0x00007f9f43bfea68>
space = StdObjSpace
e = UnicodeEncodeError('ascii', u'\n errno = EBADF;\n ... return NULL;\n ', 107, 108, 'ordinal not in range(128)')
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.BuiltinCode object at 0x00007f9f43bfea68>
func = <FunctionWithFixedCode import_extension>, w_obj = None
args = Arguments([W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.... '))])], ['prologue'], [W_UnicodeObject('#include <errno.h>')])
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_text_W_Root_text_W_Root_text_bool object at 0x00007f9f43bfeb48>
space = StdObjSpace
scope_w = [W_UnicodeObject('foo'), W_ListObject(<pypy.objspace.std.listobject.ObjectListStrategy object at 0x0000..., "/path/to/...n NULL;\n '))]), W_UnicodeObject('#include <errno.h>'), None, W_UnicodeObject(''), W_BoolObject(False)]
def _run(self, space, scope_w):
> return self.behavior(space, space.text_w(scope_w[0]), scope_w[1], space.text_w(scope_w[2]), scope_w[3], space.text_w(scope_w[4]), space.is_true(scope_w[5]))
<3048-codegen /Users/matti/build-worker-x86_64/own-macos-x86-64/build/rpython/tool/sourcetools.py:200>:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace, modname = 'foo'
w_functions = W_ListObject(<pypy.objspace.std.listobject.ObjectListStrategy object at 0x0000..., "/path/to/a\xcc\x88");\n return NULL;\n '))])
prologue = '#include <errno.h>', w_include_dirs = None, more_init = ''
PY_SSIZE_T_CLEAN = False
@unwrap_spec(modname='text', prologue='text',
more_init='text', PY_SSIZE_T_CLEAN=bool)
def import_extension(space, modname, w_functions, prologue="",
w_include_dirs=None, more_init="", PY_SSIZE_T_CLEAN=False):
functions = space.unwrap(w_functions)
include_dirs = _unwrap_include_dirs(space, w_include_dirs)
# If there's already a module under this name (file-based or a
# previous inline extension), save it in _module_keepalive before
# it's displaced. This prevents its raw allocations (method-name
# strings, type dicts, etc.) from being freed during a later
# test's leakfinder tracking window.
self._file_module_cache.pop(modname, None)
w_modules = space.sys.get('modules')
try:
w_old = space.getitem(w_modules, space.newtext(modname))
self._module_keepalive.append(w_old)
except OperationError:
pass
w_result = self.sys_info.import_extension(
modname, functions, prologue, include_dirs, more_init,
> PY_SSIZE_T_CLEAN)
module/cpyext/test/test_cpyext.py:433:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.cpyext.test.test_cpyext.SpaceCompiler object at 0x00007f9f00345da8>
modname = 'foo'
functions = [(u'set_from_errno', u'METH_NOARGS', u'\n errno = EBADF;\n PyErr_SetFromErrnoWithFilen...PyErr_SetFromErrnoWithFilename(PyExc_OSError, "/path/to/a\u0308");\n return NULL;\n ')]
prologue = '#include <errno.h>', include_dirs = None, more_init = ''
PY_SSIZE_T_CLEAN = False
def import_extension(self, modname, functions, prologue="",
include_dirs=None, more_init="", PY_SSIZE_T_CLEAN=False):
> body = prologue + make_methods(functions, modname)
tool/cpyext/extbuild.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
functions = [(u'set_from_errno', u'METH_NOARGS', u'\n errno = EBADF;\n PyErr_SetFromErrnoWithFilen...PyErr_SetFromErrnoWithFilename(PyExc_OSError, "/path/to/a\u0308");\n return NULL;\n ')]
modname = 'foo'
def make_methods(functions, modname):
methods_table = []
codes = []
for funcname, flags, code in functions:
cfuncname = "%s_%s" % (modname, funcname)
if 'METH_FASTCALL' in flags and 'METH_KEYWORDS' in flags:
signature = ('(PyObject *self, PyObject *const *args, '
'Py_ssize_t len_args, PyObject *kwnames)')
elif 'METH_KEYWORDS' in flags:
signature = '(PyObject *self, PyObject *args, PyObject *kwargs)'
elif 'METH_FASTCALL' in flags:
signature = ('(PyObject *self, PyObject *const *args, '
'Py_ssize_t len_args)')
else:
signature = '(PyObject *self, PyObject *args)'
methods_table.append(
"{\"%s\", (PyCFunction)%s, %s}," % (funcname, cfuncname, flags))
func_code = """
static PyObject* {cfuncname}{signature}
{{
{code}
}}
> """.format(cfuncname=cfuncname, signature=signature, code=code)
E UnicodeEncodeError: 'ascii' codec can't encode character u'\u0308' in position 107: ordinal not in range(128)
tool/cpyext/extbuild.py:192: UnicodeEncodeError
=========================== short test summary info ============================
FAIL module/cpyext/test/test_pyerrors.py::AppTestFetch::()::test_SetFromErrnoWithFilename_basic
=============== 1 failed, 31 passed, 4 skipped in 262.10 seconds ===============
++ 08:36:25 starting module/cpyext/test/test_pystate.py [122 started in total]
__ module/cpyext/test/test_pymem.py [120 done in total, somefailed=False] _____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pymem.py .
========================== 1 passed in 128.49 seconds ==========================
++ 08:36:51 starting module/cpyext/test/test_pystrhex.py [123 started in total]
__ module/cpyext/test/test_pysignals.py [121 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pysignals.py .
========================== 1 passed in 122.12 seconds ==========================
++ 08:37:50 starting module/cpyext/test/test_pystrtod.py [124 started in total]
__ module/cpyext/test/test_pystate.py [122 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 150.40 seconds ===============
++ 08:39:19 starting module/cpyext/test/test_sequence.py [125 started in total]
__ module/cpyext/test/test_pystrhex.py [123 done in total, somefailed=False] __
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_pystrhex.py .
========================== 1 passed in 124.51 seconds ==========================
++ 08:39:24 starting module/cpyext/test/test_setobject.py [126 started in total]
__ module/cpyext/test/test_pystrtod.py [124 done in total, somefailed=False] __
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
module/cpyext/test/test_pystrtod.py ....................
========================= 20 passed in 156.54 seconds ==========================
++ 08:40:51 starting module/cpyext/test/test_sliceobject.py [127 started in total]
__ module/cpyext/test/test_setobject.py [125 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
module/cpyext/test/test_setobject.py .........
========================== 9 passed in 142.87 seconds ==========================
++ 08:42:10 starting module/cpyext/test/test_structseq.py [128 started in total]
__ module/cpyext/test/test_sequence.py [126 done in total, somefailed=False] __
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
module/cpyext/test/test_sequence.py .......................
========================= 23 passed in 169.84 seconds ==========================
++ 08:42:34 starting module/cpyext/test/test_sysmodule.py [129 started in total]
__ module/cpyext/test/test_sliceobject.py [127 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/cpyext/test/test_sliceobject.py ........
========================== 8 passed in 142.89 seconds ==========================
++ 08:43:37 starting module/cpyext/test/test_thread.py [130 started in total]
__ module/cpyext/test/test_structseq.py [128 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_structseq.py .
========================== 1 passed in 122.57 seconds ==========================
++ 08:44:35 starting module/cpyext/test/test_traceback.py [131 started in total]
__ module/cpyext/test/test_sysmodule.py [129 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_sysmodule.py ...
========================== 3 passed in 133.62 seconds ==========================
++ 08:45:14 starting module/cpyext/test/test_translate.py [132 started in total]
__ module/cpyext/test/test_translate.py [130 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_translate.py .
========================== 1 passed in 18.39 seconds ===========================
++ 08:45:58 starting module/cpyext/test/test_tupleobject.py [133 started in total]
__ module/cpyext/test/test_traceback.py [131 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/cpyext/test/test_traceback.py .
========================== 1 passed in 94.42 seconds ===========================
++ 08:46:32 starting module/cpyext/test/test_typedeallocate.py [134 started in total]
__ module/cpyext/test/test_thread.py [132 done in total, somefailed=False] ____
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 162.49 seconds =====================
++ 08:46:46 starting module/cpyext/test/test_typeobject.py [135 started in total]
__ module/cpyext/test/test_tupleobject.py [133 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/cpyext/test/test_tupleobject.py ..........
========================= 10 passed in 145.70 seconds ==========================
++ 08:48:45 starting module/cpyext/test/test_unicodeobject.py [136 started in total]
__ module/cpyext/test/test_typedeallocate.py [134 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_typedeallocate.py ..s..
==================== 4 passed, 1 skipped in 167.74 seconds =====================
++ 08:49:40 starting module/cpyext/test/test_userslots.py [137 started in total]
__ module/cpyext/test/test_userslots.py [135 done in total, somefailed=False] _
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
module/cpyext/test/test_userslots.py .......
========================== 7 passed in 154.99 seconds ==========================
called power
++ 08:52:41 starting module/cpyext/test/test_version.py [138 started in total]
__ module/cpyext/test/test_typeobject.py [136 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 72 items
module/cpyext/test/test_typeobject.py ...................s.........................................s.......s..
==================== 69 passed, 3 skipped in 444.50 seconds ====================
++ 08:54:28 starting module/cpyext/test/test_weakref.py [139 started in total]
__ module/cpyext/test/test_unicodeobject.py [137 done in total, somefailed=False]
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 63 items
module/cpyext/test/test_unicodeobject.py ........................................ss.....................
==================== 61 passed, 2 skipped in 346.35 seconds ====================
++ 08:54:53 starting module/crypt/test [140 started in total]
__ module/cpyext/test/test_version.py [138 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/cpyext/test/test_version.py ...
========================== 3 passed in 122.09 seconds ==========================
++ 08:55:06 starting module/errno/test [141 started in total]
__ module/errno/test [139 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
module/errno/test/test_errno.py ...
========================== 3 passed in 14.56 seconds ===========================
++ 08:55:23 starting module/exceptions/test [142 started in total]
__ module/crypt/test [140 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/crypt/test/test_crypt.py .
========================== 1 passed in 45.65 seconds ===========================
++ 08:55:45 starting module/faulthandler/test [143 started in total]
__ module/faulthandler/test [141 done in total, somefailed=False] _____________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 39.05 seconds ===========================
++ 08:56:29 starting module/fcntl/test [144 started in total]
__ module/exceptions/test [142 done in total, somefailed=True] ________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 112 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 0x00007f8d28bb4c50>(*('return "\xc3\xa4"', True, 0, -1))>
func = <function <lambda> at 0x00007f8d2c13b358>, 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 0x00007f8d182949c0>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f8cd85180e0>]
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 0x00007f8cd85180e0>]
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 0x00007f8d2c1f6fe8>
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 0x00007f8d2c1d9fa0>
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 0x00007f8d2c1d9fa0>
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 0x00007f8d2c1f6f48>
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 0x00007f8d2c1d9f60>
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 0x00007f8d2c1d9f60>
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:1260:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function test_compile_stage_error_has_no_text>, args_w = ()
gateway = <module 'pypy.interpreter.gateway' from '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/gateway.pyc'>
PyCode = <class 'pypy.interpreter.pycode.PyCode'>
code = <code object test_compile_stage_error_has_no_text, file "/Users/matti/build-wo...acos-x86-64/build/pypy/module/exceptions/test/apptest_exceptions.py", line 815>
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 815> at line 819
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(None)
interpreter/pyframe.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
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)
if should_fire_local_any(self.space, self.getcode(), FRAME_ENTRY_EVENTS):
self._monitor_frame_entry(w_arg_or_err)
#
# 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:399:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00007f8d28bb4c50>(*(\'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:913:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
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)
if should_fire_local_any(self.space, self.getcode(), FRAME_ENTRY_EVENTS):
self._monitor_frame_entry(w_arg_or_err)
#
# 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:395:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
pycode = <code object test_compile_stage_error_has_no_text, file "/Users/matti/build-wo...acos-x86-64/build/pypy/module/exceptions/test/apptest_exceptions.py", line 815>
next_instr = 0L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f8d18d57910>
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:73:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
co_code = 'd\x01d\x02l\x00m\x01}\x00\x01\x00d\x03d\x03\xa0\x02\xa1\x00|\x00d\x03\xa0\x02\xa1\x00\x17\x00f\x03D\x00\x90\x01]\x07}...1\x82\x01d\x00\x08\x00}\x05\x08\x00}\x07}\x06Y\x00d\x00}\x04~\x04\x99\x11d\x00}\x04~\x04w\x01w\x00&\x03Y\x00w\x01y\x00'
next_instr = 0L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f8d18d57910>
def handle_bytecode(self, co_code, next_instr, ec):
try:
> next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
co_code = 'd\x01d\x02l\x00m\x01}\x00\x01\x00d\x03d\x03\xa0\x02\xa1\x00|\x00d\x03\xa0\x02\xa1\x00\x17\x00f\x03D\x00\x90\x01]\x07}...1\x82\x01d\x00\x08\x00}\x05\x08\x00}\x07}\x06Y\x00d\x00}\x04~\x04\x99\x11d\x00}\x04~\x04w\x01w\x00&\x03Y\x00w\x01y\x00'
next_instr = 20L
ec = <pypy.interpreter.executioncontext.ExecutionContext object at 0x00007f8d18d57910>
@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)
pycode = self.getcode()
if should_fire_local_any(ec.space, pycode, LOCAL_LINE_INSTRUCTION_MASK):
self._monitor_line_and_instruction(pycode)
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:
if should_fire_local(ec.space, pycode, PY_RETURN):
dispatch_code_event(
ec.space, PY_RETURN, pycode, intmask(self.last_instr),
self.peekvalue())
self.frame_finished_execution = True # for generators
raise Return
elif opcode == opcodedesc.RETURN_CONST.index:
self.pushvalue(self.getconstant_w(oparg))
self.frame_finished_execution = True # for generators
raise Return
elif opcode == opcodedesc.JUMP_ABSOLUTE.index:
dest = self.jump_absolute(oparg, next_instr, ec)
self._monitor_branch(JUMP, dest)
return dest
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:370:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <pypy.objspace.std.frame.StdObjSpaceFrame executing <code object test_compile_...build/pypy/module/exceptions/test/apptest_exceptions.py", line 815> at line 819
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 815> at line 819
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, is_python_function)
from pypy.interpreter.pymonitoring import (
should_fire_local, dispatch_code_event, w_missing, CALL)
pycode = frame.getcode()
call_wants_events = should_fire_local(self, pycode, CALL)
if call_wants_events:
w_arg0 = frame.peekvalue(nargs - 1) if nargs > 0 else w_missing(self)
dispatch_code_event(
self, CALL, pycode, frame.last_instr, w_func, w_arg0)
needs_c_wrap = (
(frame.get_is_being_profiled() and is_builtin_code(w_func)) or
(call_wants_events and not is_python_function(w_func)))
if needs_c_wrap:
# 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:1300:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 815> at line 819
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 0x00007f8ceab3b9f0>
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 0x00007f8ceab3b9f0>
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 0x00007f8ceab3b9f0>
space = StdObjSpace
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00007f8d28bb4c50>(*(\'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 0x00007f8ceab3b9f0>
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 0x00007f8ceab3ba98>
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])
<642-codegen /Users/matti/build-worker-x86_64/own-macos-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:1260:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <BuiltinFunction utf_8_encode>
args_w = (W_UnicodeObject('return "\xc3\xa4"'),)
gateway = <module 'pypy.interpreter.gateway' from '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/interpreter/gateway.pyc'>
PyCode = <class 'pypy.interpreter.pycode.PyCode'>
code = <pypy.interpreter.gateway.BuiltinCode2 object at 0x00007f8ce93c3980>
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 0x00007f8ce93c3980>
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 0x00007f8ce93c3980>
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 0x00007f8ce93c3980>
space = StdObjSpace
e = AssertionError(u'assert -9 == 10\n + where -9 = <function _check_utf8 at 0x00007f8d28bb4c50>(*(\'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 0x00007f8ce93c3980>
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 0x00007f8ce93c3a98>
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]))
<2665-codegen /Users/matti/build-worker-x86_64/own-macos-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:824:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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:2081:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x00007f8d28bb4c50>
args = ('return "\xc3\xa4"', True, 0, -1)
llop = <rpython.rtyper.lltypesystem.lloperation._LLOP object at 0x00007f8d18294480>
@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 0x00007f8d28bb4c50>(*('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 0x00007f8d2c9512e0>, 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 0x00007f8d182949c0>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f8cd85180e0>]
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 0x00007f8cd85180e0>]
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 0x00007f8d2cc05d58>
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 0x00007f8d2cc601e0>
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 0x00007f8d2cc601e0>
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 0x00007f8d2cc05c90>
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 0x00007f8d2cc601a0>
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 0x00007f8d2cc601a0>
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:345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_str_unicode'>, space = StdObjSpace
target = <function test_str_unicode at 0x00007f8d2c951358>
args = (StdObjSpace, <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f8d1ae0c3a0>)
def execute_appex(self, space, target, *args):
self.space = space
space.getexecutioncontext().set_sys_exc_info(None)
try:
> target(*args)
tool/pytest/apptest.py:281:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f8d1ae0c3a0>,)
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='[/Users/matti/build-worker-x86_64/own-macos-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='[/Users/matti/build-worker-x86_64/own-macos-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='[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d2cc2ce58>)
w_locals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x00007f8d2cc2ce58>)
hidden_applevel = False
filename = '[/Users/matti/build-worker-x86_64/own-macos-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:1465:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
filename = '[/Users/matti/build-worker-x86_64/own-macos-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, OperationError):
# must (re)compile the source: the cache file is missing, or it
# is stale/corrupted
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:1520:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x00007f8d2931f5c8>
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 = '[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d2931f5c8>
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 0x00007f8d2cc2cfe0>
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 = '[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d2c9516a0>
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 0x00007f8ceadecb60>, 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 0x00007f8d182949c0>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007f8cd85180e0>]
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 0x00007f8cd85180e0>]
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 0x00007f8d28fb9f88>
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 0x00007f8ce976b8e0>
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 0x00007f8ce976b8e0>
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 0x00007f8d28fb9e48>
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 0x00007f8ce976b8a0>
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 0x00007f8ce976b8a0>
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:345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <AppTestMethod 'test_nonascii_name'>, space = StdObjSpace
target = <function test_nonascii_name at 0x00007f8ceadecbd8>
args = (StdObjSpace, <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f8d1ae0c3a0>)
def execute_appex(self, space, target, *args):
self.space = space
space.getexecutioncontext().set_sys_exc_info(None)
try:
> target(*args)
tool/pytest/apptest.py:281:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
space = StdObjSpace
args_w = (<pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f8d1ae0c3a0>,)
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='[/Users/matti/build-worker-x86_64/own-macos-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='[/Users/matti/build-worker-x86_64/own-macos-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='[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d2a64ead8>)
w_locals = W_ModuleDictObject(<pypy.objspace.std.celldict.ModuleDictStrategy object at 0x00007f8d2a64ead8>)
hidden_applevel = False
filename = '[/Users/matti/build-worker-x86_64/own-macos-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:1465:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = StdObjSpace
filename = '[/Users/matti/build-worker-x86_64/own-macos-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, OperationError):
# must (re)compile the source: the cache file is missing, or it
# is stale/corrupted
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:1520:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.pycompiler.PythonAstCompiler object at 0x00007f8d2931f5c8>
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 = '[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d2931f5c8>
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 0x00007f8d2a64ecd0>
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 = '[/Users/matti/build-worker-x86_64/own-macos-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 0x00007f8d18f766b0>
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, 108 passed, 1 skipped in 61.16 seconds ===============
++ 08:56:29 starting module/gc/test [145 started in total]
__ module/cpyext/test/test_weakref.py [143 done in total, somefailed=False] ___
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
module/cpyext/test/test_weakref.py .....
========================== 5 passed in 123.90 seconds ==========================
++ 08:56:53 starting module/imp/test [146 started in total]
__ module/fcntl/test [144 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
module/fcntl/test/apptest_fcntl.py ....ss
module/fcntl/test/test_fcntl.py ....s.ss
===================== 9 passed, 5 skipped in 49.09 seconds =====================
++ 08:57:20 starting module/itertools/test [147 started in total]
__ module/gc/test [145 done in total, somefailed=False] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 55.80 seconds ===============
++ 08:57:28 starting module/marshal/test [148 started in total]
__ module/marshal/test [146 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 36.87 seconds ==========================
++ 08:58:06 starting module/math/test [149 started in total]
__ module/itertools/test [147 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 93 items
module/itertools/test/apptest_itertools.py ..........
module/itertools/test/test_itertools.py ..................................................................................
module/itertools/test/test_ztranslation.py .
========================= 93 passed in 108.78 seconds ==========================
++ 08:59:17 starting module/micronumpy/test [150 started in total]
__ module/micronumpy/test [148 done in total, somefailed=False] _______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 08:59:19 starting module/mmap/test [151 started in total]
__ module/imp/test [149 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 116 items
module/imp/test/apptest_import.py ........................
module/imp/test/test_import.py ..........................s.................................................s...............
=================== 114 passed, 2 skipped in 161.58 seconds ====================
++ 08:59:40 starting module/operator/test [152 started in total]
__ module/math/test [150 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 213 items
module/math/test/apptest_math.py ...............s
module/math/test/test_direct.py ......................................................................................................................................................................
module/math/test/test_math.py ............s..................
=================== 211 passed, 2 skipped in 103.09 seconds ====================
++ 08:59:55 starting module/posix/test [153 started in total]
__ module/mmap/test [151 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/mmap/test/test_mmap.py .....................s............ss....s.....
==================== 42 passed, 4 skipped in 37.14 seconds =====================
++ 09:00:03 starting module/pwd/test [154 started in total]
__ module/operator/test [152 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 45.53 seconds ==========================
++ 09:00:31 starting module/pyexpat/test [155 started in total]
__ module/pwd/test [153 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 55.37 seconds ===========================
++ 09:01:02 starting module/pypyjit/test [156 started in total]
__ module/pyexpat/test [154 done in total, somefailed=False] __________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 ...s.............
==================== 20 passed, 1 skipped in 70.13 seconds =====================
++ 09:01:44 starting module/select/test [157 started in total]
__ module/pypyjit/test [155 done in total, somefailed=True] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items / 1 errors
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 .
==================================== ERRORS ====================================
__________ ERROR collecting pypy/module/pypyjit/test/test_jit_hook.py __________
module/pypyjit/test/test_jit_hook.py:13: in <module>
from pypy.module.pypyjit.interp_jit import pypyjitdriver
module/pypyjit/interp_jit.py:13: in <module>
import pypy.interpreter.pyopcode # for side-effects
interpreter/pyopcode.py:15: in <module>
from pypy.interpreter import (
interpreter/pyframe.py:22: in <module>
from pypy.interpreter.pymonitoring import (
interpreter/pymonitoring.py:5: in <module>
from pypy.interpreter.typedef import TypeDef
interpreter/typedef.py:574: in <module>
from pypy.interpreter.pyframe import PyFrame
E ImportError: cannot import name 'PyFrame'
===================== 20 passed, 1 error in 38.22 seconds ======================
++ 09:01:46 starting module/signal/test [158 started in total]
__ module/posix/test [156 done in total, somefailed=True] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 170 items / 2 skipped
module/posix/test/apptest_posix.py .F..F
module/posix/test/test_interp_posix.py ....
module/posix/test/test_posix2.py ................................s................................sss...............ss......s....ss..........s..sF................ssss........
module/posix/test/test_scandir.py ....................
=================================== FAILURES ===================================
_____________________ test_fork_warns_when_threads_active ______________________
def test_fork_warns_when_threads_active():
# avoid importing 'threading'/'warnings' (expensive untranslated):
# use _thread directly, and register a minimal stand-in module
# under sys.modules['warnings'] with just enough of the real
# warnings module's interface (_showwarnmsg + WarningMessage) for
# _warnings.warn() to report through instead of writing to stderr.
import _thread
import _warnings
import _signal
import sys
import time
# fork()+threads is inherently hang-prone (that's the whole point
# of the warning under test); bound the worst case so a stuck run
# fails loudly instead of hanging the rest of the test suite.
def on_alarm(sig, frame):
raise RuntimeError("test_fork_warns_when_threads_active timed out")
old_alarm_handler = _signal.signal(_signal.SIGALRM, on_alarm)
_signal.alarm(10)
try:
ready = _thread.allocate_lock()
ready.acquire()
stop = []
def background_thread():
ready.release()
# bounded (~5s) so it self-terminates even if something odd
# happens to thread scheduling around the fork() below
for _ in range(500):
if stop:
break
time.sleep(0.01)
_thread.start_new(background_thread, ())
ready.acquire() # wait until the thread actually started
class FakeWarningMessage:
def __init__(self, message, category, filename, lineno,
file=None, line=None, source=None):
self.message = message
self.category = category
captured = []
class FakeWarningsModule:
WarningMessage = FakeWarningMessage
def _showwarnmsg(self, msg):
captured.append(msg)
old_filters = _warnings.filters[:]
old_warnings_mod = sys.modules.get('warnings')
sys.modules['warnings'] = FakeWarningsModule()
_warnings.filters.insert(0, ('always', None, DeprecationWarning, None, 0))
_warnings._filters_mutated()
try:
pid = os.fork()
if pid == 0:
os._exit(0)
finally:
if old_warnings_mod is not None:
sys.modules['warnings'] = old_warnings_mod
else:
del sys.modules['warnings']
_warnings.filters[:] = old_filters
_warnings._filters_mutated()
stop.append(1)
> assert len(captured) == 1
E (application-level) AssertionError: assert 0 == 1
E + where 0 = len([])
module/posix/test/apptest_posix.py:113: AssertionError
----------------------------- Captured stdout call -----------------------------
NOTE: invoke_after_thread_switch() is meant to be translated
and not called directly. Using some emulation.
__________________________ test_all_pathconf_defined ___________________________
def test_all_pathconf_defined():
import sys
import posix
try:
fd = sys.stdin.fileno()
except ValueError:
# translated test run with a fake sys.stdin with no fileno
fd = 1
for name in posix.pathconf_names:
> posix.fpathconf(fd, name) # does not crash
E (application-level) OSError: [Errno 22] Invalid argument
module/posix/test/apptest_posix.py:140: OSError
______________________ AppTestPosix.test_darwin_constants ______________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fe7fa007398>
def test_darwin_constants(self):
darwin_constants =['_COPYFILE_DATA']
for name in darwin_constants:
> getattr(self.posix, name)
E (application-level) AttributeError: module 'posix' has no attribute '_COPYFILE_DATA'
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/posix/test/test_posix2.py:1708]:4: AttributeError
=========================== short test summary info ============================
FAIL module/posix/test/apptest_posix.py::test_fork_warns_when_threads_active
FAIL module/posix/test/apptest_posix.py::test_all_pathconf_defined
FAIL module/posix/test/test_posix2.py::AppTestPosix::()::test_darwin_constants
============== 3 failed, 152 passed, 17 skipped in 129.94 seconds ==============
++ 09:02:13 starting module/struct/test [159 started in total]
__ module/struct/test [157 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 63.67 seconds ==========================
++ 09:03:19 starting module/sys/test [160 started in total]
__ module/signal/test [158 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 95.53 seconds ==========================
++ 09:03:28 starting module/termios/test [161 started in total]
__ module/select/test [159 done in total, somefailed=True] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/select/test/test_epoll.py ssssssssss
module/select/test/test_kqueue.py .FFF.F
module/select/test/test_select.py ............F...............
module/select/test/test_select_signal.py .
module/select/test/test_ztranslation.py .
=================================== FAILURES ===================================
_______________________ AppTestKqueue.test_create_event ________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fc388946250>
def test_create_event(self):
import select
import sys
from operator import lt, le, gt, ge
fd = sys.stderr.fileno()
ev = select.kevent(fd)
other = select.kevent(1000)
assert ev.ident == fd
assert ev.filter == select.KQ_FILTER_READ
assert ev.flags == select.KQ_EV_ADD
assert ev.fflags == 0
assert ev.data == 0
assert ev.udata == 0
assert ev == ev
assert ev != other
assert ev < other
assert other >= ev
> assert cmp(ev, None) != 0
E (application-level) NameError: name 'cmp' is not defined
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/select/test/test_kqueue.py:24]:19: NameError
________________________ AppTestKqueue.test_queue_event ________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fc388946250>
def test_queue_event(self):
import errno
import select
> import socket
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/select/test/test_kqueue.py:90]:4:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
# Wrapper module for _socket, providing some additional facilities
# implemented in Python.
"""\
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.
Functions:
socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
send_fds() -- Send file descriptor to the socket.
recv_fds() -- Receive file descriptors from the socket.
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Special objects:
SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported
IntEnum constants:
AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
Integer constants:
Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
"""
import _socket
from _socket import *
import os, sys, io, selectors
from enum import IntEnum, IntFlag
try:
import errno
except ImportError:
errno = None
EBADF = getattr(errno, 'EBADF', 9)
EAGAIN = getattr(errno, 'EAGAIN', 11)
EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
__all__ = ["fromfd", "getfqdn", "create_connection", "create_server",
"has_dualstack_ipv6", "AddressFamily", "SocketKind"]
__all__.extend(os._get_exports_list(_socket))
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
# nicer string representations.
# Note that _socket only knows about the integer values. The public interface
# in this module understands the enums and translates them back from integers
# where needed (e.g. .family property of a socket object).
IntEnum._convert_(
'AddressFamily',
__name__,
lambda C: C.isupper() and C.startswith('AF_'))
IntEnum._convert_(
'SocketKind',
__name__,
lambda C: C.isupper() and C.startswith('SOCK_'))
IntFlag._convert_(
'MsgFlag',
__name__,
lambda C: C.isupper() and C.startswith('MSG_'))
IntFlag._convert_(
'AddressInfo',
__name__,
lambda C: C.isupper() and C.startswith('AI_'))
_LOCALHOST = '127.0.0.1'
_LOCALHOST_V6 = '::1'
def _intenum_converter(value, enum_klass):
"""Convert a numeric family value to an IntEnum member.
If it's not a known member, return the numeric value itself.
"""
try:
return enum_klass(value)
except ValueError:
return value
# WSA error codes
if sys.platform.lower().startswith("win"):
errorTab = {}
errorTab[6] = "Specified event object handle is invalid."
errorTab[8] = "Insufficient memory available."
errorTab[87] = "One or more parameters are invalid."
errorTab[995] = "Overlapped operation aborted."
errorTab[996] = "Overlapped I/O event object not in signaled state."
errorTab[997] = "Overlapped operation will complete later."
errorTab[10004] = "The operation was interrupted."
errorTab[10009] = "A bad file handle was passed."
errorTab[10013] = "Permission denied."
errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT
errorTab[10022] = "An invalid operation was attempted."
errorTab[10024] = "Too many open files."
errorTab[10035] = "The socket operation would block."
errorTab[10036] = "A blocking operation is already in progress."
errorTab[10037] = "Operation already in progress."
errorTab[10038] = "Socket operation on nonsocket."
errorTab[10039] = "Destination address required."
errorTab[10040] = "Message too long."
errorTab[10041] = "Protocol wrong type for socket."
errorTab[10042] = "Bad protocol option."
errorTab[10043] = "Protocol not supported."
errorTab[10044] = "Socket type not supported."
errorTab[10045] = "Operation not supported."
errorTab[10046] = "Protocol family not supported."
errorTab[10047] = "Address family not supported by protocol family."
errorTab[10048] = "The network address is in use."
errorTab[10049] = "Cannot assign requested address."
errorTab[10050] = "Network is down."
errorTab[10051] = "Network is unreachable."
errorTab[10052] = "Network dropped connection on reset."
errorTab[10053] = "Software caused connection abort."
errorTab[10054] = "The connection has been reset."
errorTab[10055] = "No buffer space available."
errorTab[10056] = "Socket is already connected."
errorTab[10057] = "Socket is not connected."
errorTab[10058] = "The network has been shut down."
errorTab[10059] = "Too many references."
errorTab[10060] = "The operation timed out."
errorTab[10061] = "Connection refused."
errorTab[10062] = "Cannot translate name."
errorTab[10063] = "The name is too long."
errorTab[10064] = "The host is down."
errorTab[10065] = "The host is unreachable."
errorTab[10066] = "Directory not empty."
errorTab[10067] = "Too many processes."
errorTab[10068] = "User quota exceeded."
errorTab[10069] = "Disk quota exceeded."
errorTab[10070] = "Stale file handle reference."
errorTab[10071] = "Item is remote."
errorTab[10091] = "Network subsystem is unavailable."
errorTab[10092] = "Winsock.dll version out of range."
errorTab[10093] = "Successful WSAStartup not yet performed."
errorTab[10101] = "Graceful shutdown in progress."
errorTab[10102] = "No more results from WSALookupServiceNext."
errorTab[10103] = "Call has been canceled."
errorTab[10104] = "Procedure call table is invalid."
errorTab[10105] = "Service provider is invalid."
errorTab[10106] = "Service provider failed to initialize."
errorTab[10107] = "System call failure."
errorTab[10108] = "Service not found."
errorTab[10109] = "Class type not found."
errorTab[10110] = "No more results from WSALookupServiceNext."
errorTab[10111] = "Call was canceled."
errorTab[10112] = "Database query was refused."
errorTab[11001] = "Host not found."
errorTab[11002] = "Nonauthoritative host not found."
errorTab[11003] = "This is a nonrecoverable error."
errorTab[11004] = "Valid name, no data record requested type."
errorTab[11005] = "QoS receivers."
errorTab[11006] = "QoS senders."
errorTab[11007] = "No QoS senders."
errorTab[11008] = "QoS no receivers."
errorTab[11009] = "QoS request confirmed."
errorTab[11010] = "QoS admission error."
errorTab[11011] = "QoS policy failure."
errorTab[11012] = "QoS bad style."
errorTab[11013] = "QoS bad object."
errorTab[11014] = "QoS traffic control error."
errorTab[11015] = "QoS generic error."
errorTab[11016] = "QoS service type error."
errorTab[11017] = "QoS flowspec error."
errorTab[11018] = "Invalid QoS provider buffer."
errorTab[11019] = "Invalid QoS filter style."
errorTab[11020] = "Invalid QoS filter style."
errorTab[11021] = "Incorrect QoS filter count."
errorTab[11022] = "Invalid QoS object length."
errorTab[11023] = "Incorrect QoS flow count."
errorTab[11024] = "Unrecognized QoS object."
errorTab[11025] = "Invalid QoS policy object."
errorTab[11026] = "Invalid QoS flow descriptor."
errorTab[11027] = "Invalid QoS provider-specific flowspec."
errorTab[11028] = "Invalid QoS provider-specific filterspec."
errorTab[11029] = "Invalid QoS shape discard mode object."
errorTab[11030] = "Invalid QoS shaping rate object."
errorTab[11031] = "Reserved policy QoS element type."
__all__.append("errorTab")
class _GiveupOnSendfile(Exception): pass
class socket(_socket.socket):
"""A subclass of _socket.socket adding the makefile() method."""
__slots__ = ["__weakref__", "_io_refs", "_closed"]
def __init__(self, family=-1, type=-1, proto=-1, fileno=None):
# For user code address family and type values are IntEnum members, but
# for the underlying _socket.socket they're just integers. The
# constructor of _socket.socket converts the given argument to an
# integer automatically.
if fileno is None:
if family == -1:
family = AF_INET
if type == -1:
type = SOCK_STREAM
if proto == -1:
proto = 0
_socket.socket.__init__(self, family, type, proto, fileno)
self._io_refs = 0
self._closed = False
def __enter__(self):
return self
def __exit__(self, *args):
if not self._closed:
self.close()
def __repr__(self):
"""Wrap __repr__() to reveal the real class name and socket
address(es).
"""
closed = getattr(self, '_closed', False)
s = "<%s.%s%s fd=%i, family=%s, type=%s, proto=%i" \
% (self.__class__.__module__,
self.__class__.__qualname__,
" [closed]" if closed else "",
self.fileno(),
self.family,
self.type,
self.proto)
if not closed:
# getsockname and getpeername may not be available on WASI.
try:
laddr = self.getsockname()
if laddr:
s += ", laddr=%s" % str(laddr)
except (error, AttributeError):
pass
try:
raddr = self.getpeername()
if raddr:
s += ", raddr=%s" % str(raddr)
except (error, AttributeError):
pass
s += '>'
return s
def __getstate__(self):
raise TypeError(f"cannot pickle {self.__class__.__name__!r} object")
def dup(self):
"""dup() -> socket object
Duplicate the socket. Return a new socket object connected to the same
system resource. The new socket is non-inheritable.
"""
fd = dup(self.fileno())
sock = self.__class__(self.family, self.type, self.proto, fileno=fd)
sock.settimeout(self.gettimeout())
return sock
def accept(self):
"""accept() -> (socket object, address info)
Wait for an incoming connection. Return a new socket
representing the connection, and the address of the client.
For IP sockets, the address info is a pair (hostaddr, port).
"""
fd, addr = self._accept()
sock = socket(self.family, self.type, self.proto, fileno=fd)
# Issue #7995: if no default timeout is set and the listening
# socket had a (non-zero) timeout, force the new socket in blocking
# mode to override platform-specific socket flags inheritance.
if getdefaulttimeout() is None and self.gettimeout():
sock.setblocking(True)
return sock, addr
def makefile(self, mode="r", buffering=None, *,
encoding=None, errors=None, newline=None):
"""makefile(...) -> an I/O stream connected to the socket
The arguments are as for io.open() after the filename, except the only
supported mode values are 'r' (default), 'w', 'b', or a combination of
those.
"""
# XXX refactor to share code?
if not set(mode) <= {"r", "w", "b"}:
raise ValueError("invalid mode %r (only r, w, b allowed)" % (mode,))
writing = "w" in mode
reading = "r" in mode or not writing
assert reading or writing
binary = "b" in mode
rawmode = ""
if reading:
rawmode += "r"
if writing:
rawmode += "w"
raw = SocketIO(self, rawmode)
self._io_refs += 1
if buffering is None:
buffering = -1
if buffering < 0:
buffering = io.DEFAULT_BUFFER_SIZE
if buffering == 0:
if not binary:
raise ValueError("unbuffered streams must be binary")
return raw
if reading and writing:
buffer = io.BufferedRWPair(raw, raw, buffering)
elif reading:
buffer = io.BufferedReader(raw, buffering)
else:
assert writing
buffer = io.BufferedWriter(raw, buffering)
if binary:
return buffer
encoding = io.text_encoding(encoding)
text = io.TextIOWrapper(buffer, encoding, errors, newline)
text.mode = mode
return text
if hasattr(os, 'sendfile'):
def _sendfile_use_sendfile(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
sockno = self.fileno()
try:
fileno = file.fileno()
except (AttributeError, io.UnsupportedOperation) as err:
raise _GiveupOnSendfile(err) # not a regular file
try:
fsize = os.fstat(fileno).st_size
except OSError as err:
raise _GiveupOnSendfile(err) # not a regular file
if not fsize:
return 0 # empty file
# Truncate to 1GiB to avoid OverflowError, see bpo-38319.
blocksize = min(count or fsize, 2 ** 30)
timeout = self.gettimeout()
if timeout == 0:
raise ValueError("non-blocking sockets are not supported")
# poll/select have the advantage of not requiring any
# extra file descriptor, contrarily to epoll/kqueue
# (also, they require a single syscall).
if hasattr(selectors, 'PollSelector'):
selector = selectors.PollSelector()
else:
selector = selectors.SelectSelector()
selector.register(sockno, selectors.EVENT_WRITE)
total_sent = 0
# localize variable access to minimize overhead
selector_select = selector.select
os_sendfile = os.sendfile
try:
while True:
if timeout and not selector_select(timeout):
raise TimeoutError('timed out')
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
try:
sent = os_sendfile(sockno, fileno, offset, blocksize)
except BlockingIOError:
if not timeout:
# Block until the socket is ready to send some
# data; avoids hogging CPU resources.
selector_select()
continue
except OSError as err:
if total_sent == 0:
# We can get here for different reasons, the main
# one being 'file' is not a regular mmap(2)-like
# file, in which case we'll fall back on using
# plain send().
raise _GiveupOnSendfile(err)
raise err from None
else:
if sent == 0:
break # EOF
offset += sent
total_sent += sent
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset)
else:
def _sendfile_use_sendfile(self, file, offset=0, count=None):
raise _GiveupOnSendfile(
"os.sendfile() not available on this platform")
def _sendfile_use_send(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
if self.gettimeout() == 0:
raise ValueError("non-blocking sockets are not supported")
if offset:
file.seek(offset)
blocksize = min(count, 8192) if count else 8192
total_sent = 0
# localize variable access to minimize overhead
file_read = file.read
sock_send = self.send
try:
while True:
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
data = memoryview(file_read(blocksize))
if not data:
break # EOF
while True:
try:
sent = sock_send(data)
except BlockingIOError:
continue
else:
total_sent += sent
if sent < len(data):
data = data[sent:]
else:
break
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset + total_sent)
def _check_sendfile_params(self, file, offset, count):
if 'b' not in getattr(file, 'mode', 'b'):
raise ValueError("file should be opened in binary mode")
if not self.type & SOCK_STREAM:
raise ValueError("only SOCK_STREAM type sockets are supported")
if count is not None:
if not isinstance(count, int):
raise TypeError(
"count must be a positive integer (got {!r})".format(count))
if count <= 0:
raise ValueError(
"count must be a positive integer (got {!r})".format(count))
def sendfile(self, file, offset=0, count=None):
"""sendfile(file[, offset[, count]]) -> sent
Send a file until EOF is reached by using high-performance
os.sendfile() and return the total number of bytes which
were sent.
*file* must be a regular file object opened in binary mode.
If os.sendfile() is not available (e.g. Windows) or file is
not a regular file socket.send() will be used instead.
*offset* tells from where to start reading the file.
If specified, *count* is the total number of bytes to transmit
as opposed to sending the file until EOF is reached.
File position is updated on return or also in case of error in
which case file.tell() can be used to figure out the number of
bytes which were sent.
The socket must be of SOCK_STREAM type.
Non-blocking sockets are not supported.
"""
try:
return self._sendfile_use_sendfile(file, offset, count)
except _GiveupOnSendfile:
return self._sendfile_use_send(file, offset, count)
def _decref_socketios(self):
if self._io_refs > 0:
self._io_refs -= 1
if self._closed:
self.close()
def _real_close(self, _ss=_socket.socket):
# This function should not reference any globals. See issue #808164.
_ss.close(self)
def close(self):
# This function should not reference any globals. See issue #808164.
self._closed = True
if self._io_refs <= 0:
self._real_close()
def detach(self):
"""detach() -> file descriptor
Close the socket object without closing the underlying file descriptor.
The object cannot be used after this call, but the file descriptor
can be reused for other purposes. The file descriptor is returned.
"""
self._closed = True
return super().detach()
@property
def family(self):
"""Read-only access to the address family for this socket.
"""
return _intenum_converter(super().family, AddressFamily)
@property
def type(self):
"""Read-only access to the socket type.
"""
return _intenum_converter(super().type, SocketKind)
if os.name == 'nt':
def get_inheritable(self):
return os.get_handle_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_handle_inheritable(self.fileno(), inheritable)
else:
def get_inheritable(self):
return os.get_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_inheritable(self.fileno(), inheritable)
get_inheritable.__doc__ = "Get the inheritable flag of the socket"
set_inheritable.__doc__ = "Set the inheritable flag of the socket"
def fromfd(fd, family, type, proto=0):
""" fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for socket().
"""
nfd = dup(fd)
return socket(family, type, proto, nfd)
if hasattr(_socket.socket, "sendmsg"):
> import array
E (application-level) ModuleNotFoundError: No module named 'array'
../lib-python/3/socket.py:552: ModuleNotFoundError
___________________________ AppTestKqueue.test_pair ____________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fc388946250>
def test_pair(self):
import select
> import socket
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/select/test/test_kqueue.py:175]:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
# Wrapper module for _socket, providing some additional facilities
# implemented in Python.
"""\
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.
Functions:
socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
send_fds() -- Send file descriptor to the socket.
recv_fds() -- Receive file descriptors from the socket.
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Special objects:
SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported
IntEnum constants:
AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
Integer constants:
Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
"""
import _socket
from _socket import *
import os, sys, io, selectors
from enum import IntEnum, IntFlag
try:
import errno
except ImportError:
errno = None
EBADF = getattr(errno, 'EBADF', 9)
EAGAIN = getattr(errno, 'EAGAIN', 11)
EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
__all__ = ["fromfd", "getfqdn", "create_connection", "create_server",
"has_dualstack_ipv6", "AddressFamily", "SocketKind"]
__all__.extend(os._get_exports_list(_socket))
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
# nicer string representations.
# Note that _socket only knows about the integer values. The public interface
# in this module understands the enums and translates them back from integers
# where needed (e.g. .family property of a socket object).
IntEnum._convert_(
'AddressFamily',
__name__,
lambda C: C.isupper() and C.startswith('AF_'))
IntEnum._convert_(
'SocketKind',
__name__,
lambda C: C.isupper() and C.startswith('SOCK_'))
IntFlag._convert_(
'MsgFlag',
__name__,
lambda C: C.isupper() and C.startswith('MSG_'))
IntFlag._convert_(
'AddressInfo',
__name__,
lambda C: C.isupper() and C.startswith('AI_'))
_LOCALHOST = '127.0.0.1'
_LOCALHOST_V6 = '::1'
def _intenum_converter(value, enum_klass):
"""Convert a numeric family value to an IntEnum member.
If it's not a known member, return the numeric value itself.
"""
try:
return enum_klass(value)
except ValueError:
return value
# WSA error codes
if sys.platform.lower().startswith("win"):
errorTab = {}
errorTab[6] = "Specified event object handle is invalid."
errorTab[8] = "Insufficient memory available."
errorTab[87] = "One or more parameters are invalid."
errorTab[995] = "Overlapped operation aborted."
errorTab[996] = "Overlapped I/O event object not in signaled state."
errorTab[997] = "Overlapped operation will complete later."
errorTab[10004] = "The operation was interrupted."
errorTab[10009] = "A bad file handle was passed."
errorTab[10013] = "Permission denied."
errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT
errorTab[10022] = "An invalid operation was attempted."
errorTab[10024] = "Too many open files."
errorTab[10035] = "The socket operation would block."
errorTab[10036] = "A blocking operation is already in progress."
errorTab[10037] = "Operation already in progress."
errorTab[10038] = "Socket operation on nonsocket."
errorTab[10039] = "Destination address required."
errorTab[10040] = "Message too long."
errorTab[10041] = "Protocol wrong type for socket."
errorTab[10042] = "Bad protocol option."
errorTab[10043] = "Protocol not supported."
errorTab[10044] = "Socket type not supported."
errorTab[10045] = "Operation not supported."
errorTab[10046] = "Protocol family not supported."
errorTab[10047] = "Address family not supported by protocol family."
errorTab[10048] = "The network address is in use."
errorTab[10049] = "Cannot assign requested address."
errorTab[10050] = "Network is down."
errorTab[10051] = "Network is unreachable."
errorTab[10052] = "Network dropped connection on reset."
errorTab[10053] = "Software caused connection abort."
errorTab[10054] = "The connection has been reset."
errorTab[10055] = "No buffer space available."
errorTab[10056] = "Socket is already connected."
errorTab[10057] = "Socket is not connected."
errorTab[10058] = "The network has been shut down."
errorTab[10059] = "Too many references."
errorTab[10060] = "The operation timed out."
errorTab[10061] = "Connection refused."
errorTab[10062] = "Cannot translate name."
errorTab[10063] = "The name is too long."
errorTab[10064] = "The host is down."
errorTab[10065] = "The host is unreachable."
errorTab[10066] = "Directory not empty."
errorTab[10067] = "Too many processes."
errorTab[10068] = "User quota exceeded."
errorTab[10069] = "Disk quota exceeded."
errorTab[10070] = "Stale file handle reference."
errorTab[10071] = "Item is remote."
errorTab[10091] = "Network subsystem is unavailable."
errorTab[10092] = "Winsock.dll version out of range."
errorTab[10093] = "Successful WSAStartup not yet performed."
errorTab[10101] = "Graceful shutdown in progress."
errorTab[10102] = "No more results from WSALookupServiceNext."
errorTab[10103] = "Call has been canceled."
errorTab[10104] = "Procedure call table is invalid."
errorTab[10105] = "Service provider is invalid."
errorTab[10106] = "Service provider failed to initialize."
errorTab[10107] = "System call failure."
errorTab[10108] = "Service not found."
errorTab[10109] = "Class type not found."
errorTab[10110] = "No more results from WSALookupServiceNext."
errorTab[10111] = "Call was canceled."
errorTab[10112] = "Database query was refused."
errorTab[11001] = "Host not found."
errorTab[11002] = "Nonauthoritative host not found."
errorTab[11003] = "This is a nonrecoverable error."
errorTab[11004] = "Valid name, no data record requested type."
errorTab[11005] = "QoS receivers."
errorTab[11006] = "QoS senders."
errorTab[11007] = "No QoS senders."
errorTab[11008] = "QoS no receivers."
errorTab[11009] = "QoS request confirmed."
errorTab[11010] = "QoS admission error."
errorTab[11011] = "QoS policy failure."
errorTab[11012] = "QoS bad style."
errorTab[11013] = "QoS bad object."
errorTab[11014] = "QoS traffic control error."
errorTab[11015] = "QoS generic error."
errorTab[11016] = "QoS service type error."
errorTab[11017] = "QoS flowspec error."
errorTab[11018] = "Invalid QoS provider buffer."
errorTab[11019] = "Invalid QoS filter style."
errorTab[11020] = "Invalid QoS filter style."
errorTab[11021] = "Incorrect QoS filter count."
errorTab[11022] = "Invalid QoS object length."
errorTab[11023] = "Incorrect QoS flow count."
errorTab[11024] = "Unrecognized QoS object."
errorTab[11025] = "Invalid QoS policy object."
errorTab[11026] = "Invalid QoS flow descriptor."
errorTab[11027] = "Invalid QoS provider-specific flowspec."
errorTab[11028] = "Invalid QoS provider-specific filterspec."
errorTab[11029] = "Invalid QoS shape discard mode object."
errorTab[11030] = "Invalid QoS shaping rate object."
errorTab[11031] = "Reserved policy QoS element type."
__all__.append("errorTab")
class _GiveupOnSendfile(Exception): pass
class socket(_socket.socket):
"""A subclass of _socket.socket adding the makefile() method."""
__slots__ = ["__weakref__", "_io_refs", "_closed"]
def __init__(self, family=-1, type=-1, proto=-1, fileno=None):
# For user code address family and type values are IntEnum members, but
# for the underlying _socket.socket they're just integers. The
# constructor of _socket.socket converts the given argument to an
# integer automatically.
if fileno is None:
if family == -1:
family = AF_INET
if type == -1:
type = SOCK_STREAM
if proto == -1:
proto = 0
_socket.socket.__init__(self, family, type, proto, fileno)
self._io_refs = 0
self._closed = False
def __enter__(self):
return self
def __exit__(self, *args):
if not self._closed:
self.close()
def __repr__(self):
"""Wrap __repr__() to reveal the real class name and socket
address(es).
"""
closed = getattr(self, '_closed', False)
s = "<%s.%s%s fd=%i, family=%s, type=%s, proto=%i" \
% (self.__class__.__module__,
self.__class__.__qualname__,
" [closed]" if closed else "",
self.fileno(),
self.family,
self.type,
self.proto)
if not closed:
# getsockname and getpeername may not be available on WASI.
try:
laddr = self.getsockname()
if laddr:
s += ", laddr=%s" % str(laddr)
except (error, AttributeError):
pass
try:
raddr = self.getpeername()
if raddr:
s += ", raddr=%s" % str(raddr)
except (error, AttributeError):
pass
s += '>'
return s
def __getstate__(self):
raise TypeError(f"cannot pickle {self.__class__.__name__!r} object")
def dup(self):
"""dup() -> socket object
Duplicate the socket. Return a new socket object connected to the same
system resource. The new socket is non-inheritable.
"""
fd = dup(self.fileno())
sock = self.__class__(self.family, self.type, self.proto, fileno=fd)
sock.settimeout(self.gettimeout())
return sock
def accept(self):
"""accept() -> (socket object, address info)
Wait for an incoming connection. Return a new socket
representing the connection, and the address of the client.
For IP sockets, the address info is a pair (hostaddr, port).
"""
fd, addr = self._accept()
sock = socket(self.family, self.type, self.proto, fileno=fd)
# Issue #7995: if no default timeout is set and the listening
# socket had a (non-zero) timeout, force the new socket in blocking
# mode to override platform-specific socket flags inheritance.
if getdefaulttimeout() is None and self.gettimeout():
sock.setblocking(True)
return sock, addr
def makefile(self, mode="r", buffering=None, *,
encoding=None, errors=None, newline=None):
"""makefile(...) -> an I/O stream connected to the socket
The arguments are as for io.open() after the filename, except the only
supported mode values are 'r' (default), 'w', 'b', or a combination of
those.
"""
# XXX refactor to share code?
if not set(mode) <= {"r", "w", "b"}:
raise ValueError("invalid mode %r (only r, w, b allowed)" % (mode,))
writing = "w" in mode
reading = "r" in mode or not writing
assert reading or writing
binary = "b" in mode
rawmode = ""
if reading:
rawmode += "r"
if writing:
rawmode += "w"
raw = SocketIO(self, rawmode)
self._io_refs += 1
if buffering is None:
buffering = -1
if buffering < 0:
buffering = io.DEFAULT_BUFFER_SIZE
if buffering == 0:
if not binary:
raise ValueError("unbuffered streams must be binary")
return raw
if reading and writing:
buffer = io.BufferedRWPair(raw, raw, buffering)
elif reading:
buffer = io.BufferedReader(raw, buffering)
else:
assert writing
buffer = io.BufferedWriter(raw, buffering)
if binary:
return buffer
encoding = io.text_encoding(encoding)
text = io.TextIOWrapper(buffer, encoding, errors, newline)
text.mode = mode
return text
if hasattr(os, 'sendfile'):
def _sendfile_use_sendfile(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
sockno = self.fileno()
try:
fileno = file.fileno()
except (AttributeError, io.UnsupportedOperation) as err:
raise _GiveupOnSendfile(err) # not a regular file
try:
fsize = os.fstat(fileno).st_size
except OSError as err:
raise _GiveupOnSendfile(err) # not a regular file
if not fsize:
return 0 # empty file
# Truncate to 1GiB to avoid OverflowError, see bpo-38319.
blocksize = min(count or fsize, 2 ** 30)
timeout = self.gettimeout()
if timeout == 0:
raise ValueError("non-blocking sockets are not supported")
# poll/select have the advantage of not requiring any
# extra file descriptor, contrarily to epoll/kqueue
# (also, they require a single syscall).
if hasattr(selectors, 'PollSelector'):
selector = selectors.PollSelector()
else:
selector = selectors.SelectSelector()
selector.register(sockno, selectors.EVENT_WRITE)
total_sent = 0
# localize variable access to minimize overhead
selector_select = selector.select
os_sendfile = os.sendfile
try:
while True:
if timeout and not selector_select(timeout):
raise TimeoutError('timed out')
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
try:
sent = os_sendfile(sockno, fileno, offset, blocksize)
except BlockingIOError:
if not timeout:
# Block until the socket is ready to send some
# data; avoids hogging CPU resources.
selector_select()
continue
except OSError as err:
if total_sent == 0:
# We can get here for different reasons, the main
# one being 'file' is not a regular mmap(2)-like
# file, in which case we'll fall back on using
# plain send().
raise _GiveupOnSendfile(err)
raise err from None
else:
if sent == 0:
break # EOF
offset += sent
total_sent += sent
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset)
else:
def _sendfile_use_sendfile(self, file, offset=0, count=None):
raise _GiveupOnSendfile(
"os.sendfile() not available on this platform")
def _sendfile_use_send(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
if self.gettimeout() == 0:
raise ValueError("non-blocking sockets are not supported")
if offset:
file.seek(offset)
blocksize = min(count, 8192) if count else 8192
total_sent = 0
# localize variable access to minimize overhead
file_read = file.read
sock_send = self.send
try:
while True:
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
data = memoryview(file_read(blocksize))
if not data:
break # EOF
while True:
try:
sent = sock_send(data)
except BlockingIOError:
continue
else:
total_sent += sent
if sent < len(data):
data = data[sent:]
else:
break
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset + total_sent)
def _check_sendfile_params(self, file, offset, count):
if 'b' not in getattr(file, 'mode', 'b'):
raise ValueError("file should be opened in binary mode")
if not self.type & SOCK_STREAM:
raise ValueError("only SOCK_STREAM type sockets are supported")
if count is not None:
if not isinstance(count, int):
raise TypeError(
"count must be a positive integer (got {!r})".format(count))
if count <= 0:
raise ValueError(
"count must be a positive integer (got {!r})".format(count))
def sendfile(self, file, offset=0, count=None):
"""sendfile(file[, offset[, count]]) -> sent
Send a file until EOF is reached by using high-performance
os.sendfile() and return the total number of bytes which
were sent.
*file* must be a regular file object opened in binary mode.
If os.sendfile() is not available (e.g. Windows) or file is
not a regular file socket.send() will be used instead.
*offset* tells from where to start reading the file.
If specified, *count* is the total number of bytes to transmit
as opposed to sending the file until EOF is reached.
File position is updated on return or also in case of error in
which case file.tell() can be used to figure out the number of
bytes which were sent.
The socket must be of SOCK_STREAM type.
Non-blocking sockets are not supported.
"""
try:
return self._sendfile_use_sendfile(file, offset, count)
except _GiveupOnSendfile:
return self._sendfile_use_send(file, offset, count)
def _decref_socketios(self):
if self._io_refs > 0:
self._io_refs -= 1
if self._closed:
self.close()
def _real_close(self, _ss=_socket.socket):
# This function should not reference any globals. See issue #808164.
_ss.close(self)
def close(self):
# This function should not reference any globals. See issue #808164.
self._closed = True
if self._io_refs <= 0:
self._real_close()
def detach(self):
"""detach() -> file descriptor
Close the socket object without closing the underlying file descriptor.
The object cannot be used after this call, but the file descriptor
can be reused for other purposes. The file descriptor is returned.
"""
self._closed = True
return super().detach()
@property
def family(self):
"""Read-only access to the address family for this socket.
"""
return _intenum_converter(super().family, AddressFamily)
@property
def type(self):
"""Read-only access to the socket type.
"""
return _intenum_converter(super().type, SocketKind)
if os.name == 'nt':
def get_inheritable(self):
return os.get_handle_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_handle_inheritable(self.fileno(), inheritable)
else:
def get_inheritable(self):
return os.get_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_inheritable(self.fileno(), inheritable)
get_inheritable.__doc__ = "Get the inheritable flag of the socket"
set_inheritable.__doc__ = "Set the inheritable flag of the socket"
def fromfd(fd, family, type, proto=0):
""" fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for socket().
"""
nfd = dup(fd)
return socket(family, type, proto, nfd)
if hasattr(_socket.socket, "sendmsg"):
> import array
E (application-level) ModuleNotFoundError: No module named 'array'
../lib-python/3/socket.py:552: ModuleNotFoundError
________________________ AppTestKqueue.test_issue30058 _________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fc388946250>
def test_issue30058(self):
import select
> import socket
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/select/test/test_kqueue.py:202]:3:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
# Wrapper module for _socket, providing some additional facilities
# implemented in Python.
"""\
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.
Functions:
socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
send_fds() -- Send file descriptor to the socket.
recv_fds() -- Receive file descriptors from the socket.
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Special objects:
SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported
IntEnum constants:
AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
Integer constants:
Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
"""
import _socket
from _socket import *
import os, sys, io, selectors
from enum import IntEnum, IntFlag
try:
import errno
except ImportError:
errno = None
EBADF = getattr(errno, 'EBADF', 9)
EAGAIN = getattr(errno, 'EAGAIN', 11)
EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
__all__ = ["fromfd", "getfqdn", "create_connection", "create_server",
"has_dualstack_ipv6", "AddressFamily", "SocketKind"]
__all__.extend(os._get_exports_list(_socket))
# Set up the socket.AF_* socket.SOCK_* constants as members of IntEnums for
# nicer string representations.
# Note that _socket only knows about the integer values. The public interface
# in this module understands the enums and translates them back from integers
# where needed (e.g. .family property of a socket object).
IntEnum._convert_(
'AddressFamily',
__name__,
lambda C: C.isupper() and C.startswith('AF_'))
IntEnum._convert_(
'SocketKind',
__name__,
lambda C: C.isupper() and C.startswith('SOCK_'))
IntFlag._convert_(
'MsgFlag',
__name__,
lambda C: C.isupper() and C.startswith('MSG_'))
IntFlag._convert_(
'AddressInfo',
__name__,
lambda C: C.isupper() and C.startswith('AI_'))
_LOCALHOST = '127.0.0.1'
_LOCALHOST_V6 = '::1'
def _intenum_converter(value, enum_klass):
"""Convert a numeric family value to an IntEnum member.
If it's not a known member, return the numeric value itself.
"""
try:
return enum_klass(value)
except ValueError:
return value
# WSA error codes
if sys.platform.lower().startswith("win"):
errorTab = {}
errorTab[6] = "Specified event object handle is invalid."
errorTab[8] = "Insufficient memory available."
errorTab[87] = "One or more parameters are invalid."
errorTab[995] = "Overlapped operation aborted."
errorTab[996] = "Overlapped I/O event object not in signaled state."
errorTab[997] = "Overlapped operation will complete later."
errorTab[10004] = "The operation was interrupted."
errorTab[10009] = "A bad file handle was passed."
errorTab[10013] = "Permission denied."
errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT
errorTab[10022] = "An invalid operation was attempted."
errorTab[10024] = "Too many open files."
errorTab[10035] = "The socket operation would block."
errorTab[10036] = "A blocking operation is already in progress."
errorTab[10037] = "Operation already in progress."
errorTab[10038] = "Socket operation on nonsocket."
errorTab[10039] = "Destination address required."
errorTab[10040] = "Message too long."
errorTab[10041] = "Protocol wrong type for socket."
errorTab[10042] = "Bad protocol option."
errorTab[10043] = "Protocol not supported."
errorTab[10044] = "Socket type not supported."
errorTab[10045] = "Operation not supported."
errorTab[10046] = "Protocol family not supported."
errorTab[10047] = "Address family not supported by protocol family."
errorTab[10048] = "The network address is in use."
errorTab[10049] = "Cannot assign requested address."
errorTab[10050] = "Network is down."
errorTab[10051] = "Network is unreachable."
errorTab[10052] = "Network dropped connection on reset."
errorTab[10053] = "Software caused connection abort."
errorTab[10054] = "The connection has been reset."
errorTab[10055] = "No buffer space available."
errorTab[10056] = "Socket is already connected."
errorTab[10057] = "Socket is not connected."
errorTab[10058] = "The network has been shut down."
errorTab[10059] = "Too many references."
errorTab[10060] = "The operation timed out."
errorTab[10061] = "Connection refused."
errorTab[10062] = "Cannot translate name."
errorTab[10063] = "The name is too long."
errorTab[10064] = "The host is down."
errorTab[10065] = "The host is unreachable."
errorTab[10066] = "Directory not empty."
errorTab[10067] = "Too many processes."
errorTab[10068] = "User quota exceeded."
errorTab[10069] = "Disk quota exceeded."
errorTab[10070] = "Stale file handle reference."
errorTab[10071] = "Item is remote."
errorTab[10091] = "Network subsystem is unavailable."
errorTab[10092] = "Winsock.dll version out of range."
errorTab[10093] = "Successful WSAStartup not yet performed."
errorTab[10101] = "Graceful shutdown in progress."
errorTab[10102] = "No more results from WSALookupServiceNext."
errorTab[10103] = "Call has been canceled."
errorTab[10104] = "Procedure call table is invalid."
errorTab[10105] = "Service provider is invalid."
errorTab[10106] = "Service provider failed to initialize."
errorTab[10107] = "System call failure."
errorTab[10108] = "Service not found."
errorTab[10109] = "Class type not found."
errorTab[10110] = "No more results from WSALookupServiceNext."
errorTab[10111] = "Call was canceled."
errorTab[10112] = "Database query was refused."
errorTab[11001] = "Host not found."
errorTab[11002] = "Nonauthoritative host not found."
errorTab[11003] = "This is a nonrecoverable error."
errorTab[11004] = "Valid name, no data record requested type."
errorTab[11005] = "QoS receivers."
errorTab[11006] = "QoS senders."
errorTab[11007] = "No QoS senders."
errorTab[11008] = "QoS no receivers."
errorTab[11009] = "QoS request confirmed."
errorTab[11010] = "QoS admission error."
errorTab[11011] = "QoS policy failure."
errorTab[11012] = "QoS bad style."
errorTab[11013] = "QoS bad object."
errorTab[11014] = "QoS traffic control error."
errorTab[11015] = "QoS generic error."
errorTab[11016] = "QoS service type error."
errorTab[11017] = "QoS flowspec error."
errorTab[11018] = "Invalid QoS provider buffer."
errorTab[11019] = "Invalid QoS filter style."
errorTab[11020] = "Invalid QoS filter style."
errorTab[11021] = "Incorrect QoS filter count."
errorTab[11022] = "Invalid QoS object length."
errorTab[11023] = "Incorrect QoS flow count."
errorTab[11024] = "Unrecognized QoS object."
errorTab[11025] = "Invalid QoS policy object."
errorTab[11026] = "Invalid QoS flow descriptor."
errorTab[11027] = "Invalid QoS provider-specific flowspec."
errorTab[11028] = "Invalid QoS provider-specific filterspec."
errorTab[11029] = "Invalid QoS shape discard mode object."
errorTab[11030] = "Invalid QoS shaping rate object."
errorTab[11031] = "Reserved policy QoS element type."
__all__.append("errorTab")
class _GiveupOnSendfile(Exception): pass
class socket(_socket.socket):
"""A subclass of _socket.socket adding the makefile() method."""
__slots__ = ["__weakref__", "_io_refs", "_closed"]
def __init__(self, family=-1, type=-1, proto=-1, fileno=None):
# For user code address family and type values are IntEnum members, but
# for the underlying _socket.socket they're just integers. The
# constructor of _socket.socket converts the given argument to an
# integer automatically.
if fileno is None:
if family == -1:
family = AF_INET
if type == -1:
type = SOCK_STREAM
if proto == -1:
proto = 0
_socket.socket.__init__(self, family, type, proto, fileno)
self._io_refs = 0
self._closed = False
def __enter__(self):
return self
def __exit__(self, *args):
if not self._closed:
self.close()
def __repr__(self):
"""Wrap __repr__() to reveal the real class name and socket
address(es).
"""
closed = getattr(self, '_closed', False)
s = "<%s.%s%s fd=%i, family=%s, type=%s, proto=%i" \
% (self.__class__.__module__,
self.__class__.__qualname__,
" [closed]" if closed else "",
self.fileno(),
self.family,
self.type,
self.proto)
if not closed:
# getsockname and getpeername may not be available on WASI.
try:
laddr = self.getsockname()
if laddr:
s += ", laddr=%s" % str(laddr)
except (error, AttributeError):
pass
try:
raddr = self.getpeername()
if raddr:
s += ", raddr=%s" % str(raddr)
except (error, AttributeError):
pass
s += '>'
return s
def __getstate__(self):
raise TypeError(f"cannot pickle {self.__class__.__name__!r} object")
def dup(self):
"""dup() -> socket object
Duplicate the socket. Return a new socket object connected to the same
system resource. The new socket is non-inheritable.
"""
fd = dup(self.fileno())
sock = self.__class__(self.family, self.type, self.proto, fileno=fd)
sock.settimeout(self.gettimeout())
return sock
def accept(self):
"""accept() -> (socket object, address info)
Wait for an incoming connection. Return a new socket
representing the connection, and the address of the client.
For IP sockets, the address info is a pair (hostaddr, port).
"""
fd, addr = self._accept()
sock = socket(self.family, self.type, self.proto, fileno=fd)
# Issue #7995: if no default timeout is set and the listening
# socket had a (non-zero) timeout, force the new socket in blocking
# mode to override platform-specific socket flags inheritance.
if getdefaulttimeout() is None and self.gettimeout():
sock.setblocking(True)
return sock, addr
def makefile(self, mode="r", buffering=None, *,
encoding=None, errors=None, newline=None):
"""makefile(...) -> an I/O stream connected to the socket
The arguments are as for io.open() after the filename, except the only
supported mode values are 'r' (default), 'w', 'b', or a combination of
those.
"""
# XXX refactor to share code?
if not set(mode) <= {"r", "w", "b"}:
raise ValueError("invalid mode %r (only r, w, b allowed)" % (mode,))
writing = "w" in mode
reading = "r" in mode or not writing
assert reading or writing
binary = "b" in mode
rawmode = ""
if reading:
rawmode += "r"
if writing:
rawmode += "w"
raw = SocketIO(self, rawmode)
self._io_refs += 1
if buffering is None:
buffering = -1
if buffering < 0:
buffering = io.DEFAULT_BUFFER_SIZE
if buffering == 0:
if not binary:
raise ValueError("unbuffered streams must be binary")
return raw
if reading and writing:
buffer = io.BufferedRWPair(raw, raw, buffering)
elif reading:
buffer = io.BufferedReader(raw, buffering)
else:
assert writing
buffer = io.BufferedWriter(raw, buffering)
if binary:
return buffer
encoding = io.text_encoding(encoding)
text = io.TextIOWrapper(buffer, encoding, errors, newline)
text.mode = mode
return text
if hasattr(os, 'sendfile'):
def _sendfile_use_sendfile(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
sockno = self.fileno()
try:
fileno = file.fileno()
except (AttributeError, io.UnsupportedOperation) as err:
raise _GiveupOnSendfile(err) # not a regular file
try:
fsize = os.fstat(fileno).st_size
except OSError as err:
raise _GiveupOnSendfile(err) # not a regular file
if not fsize:
return 0 # empty file
# Truncate to 1GiB to avoid OverflowError, see bpo-38319.
blocksize = min(count or fsize, 2 ** 30)
timeout = self.gettimeout()
if timeout == 0:
raise ValueError("non-blocking sockets are not supported")
# poll/select have the advantage of not requiring any
# extra file descriptor, contrarily to epoll/kqueue
# (also, they require a single syscall).
if hasattr(selectors, 'PollSelector'):
selector = selectors.PollSelector()
else:
selector = selectors.SelectSelector()
selector.register(sockno, selectors.EVENT_WRITE)
total_sent = 0
# localize variable access to minimize overhead
selector_select = selector.select
os_sendfile = os.sendfile
try:
while True:
if timeout and not selector_select(timeout):
raise TimeoutError('timed out')
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
try:
sent = os_sendfile(sockno, fileno, offset, blocksize)
except BlockingIOError:
if not timeout:
# Block until the socket is ready to send some
# data; avoids hogging CPU resources.
selector_select()
continue
except OSError as err:
if total_sent == 0:
# We can get here for different reasons, the main
# one being 'file' is not a regular mmap(2)-like
# file, in which case we'll fall back on using
# plain send().
raise _GiveupOnSendfile(err)
raise err from None
else:
if sent == 0:
break # EOF
offset += sent
total_sent += sent
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset)
else:
def _sendfile_use_sendfile(self, file, offset=0, count=None):
raise _GiveupOnSendfile(
"os.sendfile() not available on this platform")
def _sendfile_use_send(self, file, offset=0, count=None):
self._check_sendfile_params(file, offset, count)
if self.gettimeout() == 0:
raise ValueError("non-blocking sockets are not supported")
if offset:
file.seek(offset)
blocksize = min(count, 8192) if count else 8192
total_sent = 0
# localize variable access to minimize overhead
file_read = file.read
sock_send = self.send
try:
while True:
if count:
blocksize = min(count - total_sent, blocksize)
if blocksize <= 0:
break
data = memoryview(file_read(blocksize))
if not data:
break # EOF
while True:
try:
sent = sock_send(data)
except BlockingIOError:
continue
else:
total_sent += sent
if sent < len(data):
data = data[sent:]
else:
break
return total_sent
finally:
if total_sent > 0 and hasattr(file, 'seek'):
file.seek(offset + total_sent)
def _check_sendfile_params(self, file, offset, count):
if 'b' not in getattr(file, 'mode', 'b'):
raise ValueError("file should be opened in binary mode")
if not self.type & SOCK_STREAM:
raise ValueError("only SOCK_STREAM type sockets are supported")
if count is not None:
if not isinstance(count, int):
raise TypeError(
"count must be a positive integer (got {!r})".format(count))
if count <= 0:
raise ValueError(
"count must be a positive integer (got {!r})".format(count))
def sendfile(self, file, offset=0, count=None):
"""sendfile(file[, offset[, count]]) -> sent
Send a file until EOF is reached by using high-performance
os.sendfile() and return the total number of bytes which
were sent.
*file* must be a regular file object opened in binary mode.
If os.sendfile() is not available (e.g. Windows) or file is
not a regular file socket.send() will be used instead.
*offset* tells from where to start reading the file.
If specified, *count* is the total number of bytes to transmit
as opposed to sending the file until EOF is reached.
File position is updated on return or also in case of error in
which case file.tell() can be used to figure out the number of
bytes which were sent.
The socket must be of SOCK_STREAM type.
Non-blocking sockets are not supported.
"""
try:
return self._sendfile_use_sendfile(file, offset, count)
except _GiveupOnSendfile:
return self._sendfile_use_send(file, offset, count)
def _decref_socketios(self):
if self._io_refs > 0:
self._io_refs -= 1
if self._closed:
self.close()
def _real_close(self, _ss=_socket.socket):
# This function should not reference any globals. See issue #808164.
_ss.close(self)
def close(self):
# This function should not reference any globals. See issue #808164.
self._closed = True
if self._io_refs <= 0:
self._real_close()
def detach(self):
"""detach() -> file descriptor
Close the socket object without closing the underlying file descriptor.
The object cannot be used after this call, but the file descriptor
can be reused for other purposes. The file descriptor is returned.
"""
self._closed = True
return super().detach()
@property
def family(self):
"""Read-only access to the address family for this socket.
"""
return _intenum_converter(super().family, AddressFamily)
@property
def type(self):
"""Read-only access to the socket type.
"""
return _intenum_converter(super().type, SocketKind)
if os.name == 'nt':
def get_inheritable(self):
return os.get_handle_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_handle_inheritable(self.fileno(), inheritable)
else:
def get_inheritable(self):
return os.get_inheritable(self.fileno())
def set_inheritable(self, inheritable):
os.set_inheritable(self.fileno(), inheritable)
get_inheritable.__doc__ = "Get the inheritable flag of the socket"
set_inheritable.__doc__ = "Set the inheritable flag of the socket"
def fromfd(fd, family, type, proto=0):
""" fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for socket().
"""
nfd = dup(fd)
return socket(family, type, proto, nfd)
if hasattr(_socket.socket, "sendmsg"):
> import array
E (application-level) ModuleNotFoundError: No module named 'array'
../lib-python/3/socket.py:552: ModuleNotFoundError
_______________________ AppTestSelectWithPipes.test_poll _______________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fc38a3a8608>
def test_poll(self):
import select
if not hasattr(select, 'poll'):
skip("no select.poll() on this platform")
readend, writeend = self.getpair()
try:
class A(object):
def fileno(self):
return readend.fileno()
poll = select.poll()
poll.register(A())
res = poll.poll(10) # timeout in ms
assert res == []
res = poll.poll(1.1) # check floats
assert res == []
writeend.send(b"foo!")
# can't easily test actual blocking, is done in lib-python tests
res = poll.poll()
> assert res == [(readend.fileno(), 1)]
E (application-level) AssertionError
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/select/test/test_select.py:274]:21: AssertionError
=========================== short test summary info ============================
FAIL module/select/test/test_kqueue.py::AppTestKqueue::()::test_create_event
FAIL module/select/test/test_kqueue.py::AppTestKqueue::()::test_queue_event
FAIL module/select/test/test_kqueue.py::AppTestKqueue::()::test_pair
FAIL module/select/test/test_kqueue.py::AppTestKqueue::()::test_issue30058
FAIL module/select/test/test_select.py::AppTestSelectWithPipes::()::test_poll
============== 5 failed, 31 passed, 10 skipped in 105.88 seconds ===============
++ 09:03:33 starting module/test_lib_pypy [162 started in total]
__ module/sys/test [160 done in total, somefailed=True] _______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 147 items
module/sys/test/apptest_audit.py ..........
module/sys/test/apptest_initpath.py .
module/sys/test/apptest_monitoring.py ..................FF.........................
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...............s........
module/sys/test/test_version.py .......
=================================== FAILURES ===================================
__________________________ test_fire_py_start_return ___________________________
def test_fire_py_start_return():
E = sys.monitoring.events
events = []
def callback(*args):
events.append(args)
sys.monitoring.use_tool_id(3, "test tool")
try:
sys.monitoring.register_callback(3, E.PY_START, callback)
sys.monitoring.register_callback(3, E.PY_RETURN, callback)
sys.monitoring.set_events(3, E.PY_START | E.PY_RETURN)
def f():
return 42
events.clear()
assert f() == 42
> assert len(events) == 2
E (application-level) AssertionError: assert 1 == 2
E + where 1 = len([(<code object f at 0x00007f9b42a55328, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 311>, 0)])
module/sys/test/apptest_monitoring.py:316: AssertionError
__________________________ test_fire_py_yield_resume ___________________________
def test_fire_py_yield_resume():
E = sys.monitoring.events
events = []
def callback(*args):
events.append(args[:2])
sys.monitoring.use_tool_id(3, "test tool")
try:
sys.monitoring.register_callback(3, E.PY_START, callback)
sys.monitoring.register_callback(3, E.PY_RESUME, callback)
sys.monitoring.register_callback(3, E.PY_YIELD, callback)
sys.monitoring.register_callback(3, E.PY_RETURN, callback)
sys.monitoring.set_events(3, E.PY_START | E.PY_RESUME | E.PY_YIELD | E.PY_RETURN)
def g():
yield 1
yield 2
events[:] = []
gen = g()
code = g.__code__
assert next(gen) == 1
assert next(gen) == 2
raises(StopIteration, next, gen)
sys.monitoring.set_events(3, 0)
g_events = [ev for ev in events if ev[0] is code]
> assert len(g_events) == 6 # start, yield, resume, yield, resume, return
E (application-level) AssertionError: assert 5 == 6
E + where 5 = len([(<code object g at 0x00007f9b20c7ac28, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 340>, 0), (<code object g at 0x00007f9b20c7ac28, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 340>, 2), (<code object g at 0x00007f9b20c7ac28, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 340>, 4), (<code object g at 0x00007f9b20c7ac28, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 340>, 8), (<code object g at 0x00007f9b20c7ac28, file "/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/apptest_monitoring.py", line 340>, 10)])
module/sys/test/apptest_monitoring.py:352: AssertionError
_________ AppTestSysModulePortedFromCPython.test_recursionlimit_toolow _________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007f9b32ecf868>
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
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/sys/test/test_sysmodule.py:619]:8: AssertionError
=========================== short test summary info ============================
FAIL module/sys/test/apptest_monitoring.py::test_fire_py_start_return
FAIL module/sys/test/apptest_monitoring.py::test_fire_py_yield_resume
FAIL module/sys/test/test_sysmodule.py::AppTestSysModulePortedFromCPython::()::test_recursionlimit_toolow
=============== 3 failed, 142 passed, 2 skipped in 59.84 seconds ===============
++ 09:04:24 starting module/thread/test [163 started in total]
__ module/test_lib_pypy [161 done in total, somefailed=False] _________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 77.07 seconds ====================
++ 09:04:53 starting module/time/test [164 started in total]
__ module/time/test [162 done in total, somefailed=True] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 44 items
module/time/test/apptest_time.py ........................FFF..............F
module/time/test/test_timeutils.py .
module/time/test/test_ztranslation.py .
=================================== FAILURES ===================================
____________________________ test_strftime_nonascii ____________________________
@pytest.mark.skipif(sys.platform=="win32", reason='fails on win32')
def test_strftime_nonascii():
import time
import _locale
prev_loc = _locale.setlocale(_locale.LC_TIME)
try:
_locale.setlocale(_locale.LC_TIME, "fr_CH")
except _locale.Error:
skip("unsupported locale LC_TIME=fr_CH")
try:
s = time.strftime('%B.', time.localtime(192039127))
# I am unsure, but I think that this fails because decoding of
# the result isn't done in the fr_CH locale. There is no code
# to grab the LC_TIME locale specifically, which is the one
# used by strftime().
> assert s == "f\xe9vrier."
E (application-level) AssertionError: assert 'février.' == 'février.'
module/time/test/apptest_time.py:524: AssertionError
___________________________ test_strftime_surrogate ____________________________
def test_strftime_surrogate():
import time
# maybe raises, maybe doesn't, but should not crash
try:
res = time.strftime(u'%y\ud800%m', time.localtime(192039127))
except UnicodeEncodeError:
pass
else:
expected = u'76\ud80002'
print(len(res), len(expected))
> assert res == u'76\ud80002'
E (application-level) AssertionError: assert '' == '76\ud80002'
module/time/test/apptest_time.py:538: AssertionError
----------------------------- Captured stdout call -----------------------------
0 5
____________________________ test_strftime_unicode _____________________________
@pytest.mark.skipif(_WIN32, reason="fails to encode s")
def test_strftime_unicode():
import time
s = u"ððððððððððððððððððððððð꿀"
res = time.strftime(u"%D" + s, time.localtime(192039127))
> assert res.endswith(s)
E (application-level) AssertionError: assert False
E + where False = <built-in method endswith of str object at 0x000000000000101b>('ððððððððððððððððððððððð꿀')
E + where <built-in method endswith of str object at 0x000000000000101b> = ''.endswith
module/time/test/apptest_time.py:545: AssertionError
____________ test_strftime_surrogateescaped_bytes_do_not_recombine _____________
def test_strftime_surrogateescaped_bytes_do_not_recombine():
import time
t = time.localtime(192039127)
> assert time.strftime('\udcf0\udc9f\udc90\udc8d', t) == '\udcf0\udc9f\udc90\udc8d'
E (application-level) AssertionError: assert '' == '\udcf0\udc9f\udc90\udc8d'
E + where '' = <built-in function strftime>('\udcf0\udc9f\udc90\udc8d', time.struct_time(tm_year=1976, tm_mon=2, tm_mday=1, tm_hour=18, tm_min=12, tm_sec=7, tm_wday=6, tm_yday=32, tm_isdst=0))
E + where <built-in function strftime> = <module 'time' (built-in)>.strftime
module/time/test/apptest_time.py:693: AssertionError
=========================== short test summary info ============================
FAIL module/time/test/apptest_time.py::test_strftime_nonascii
FAIL module/time/test/apptest_time.py::test_strftime_surrogate
FAIL module/time/test/apptest_time.py::test_strftime_unicode
FAIL module/time/test/apptest_time.py::test_strftime_surrogateescaped_bytes_do_not_recombine
===================== 4 failed, 40 passed in 82.85 seconds =====================
++ 09:06:21 starting module/token/test [165 started in total]
__ module/token/test [163 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
module/token/test/apptest_token.py ........
========================== 8 passed in 12.42 seconds ===========================
++ 09:06:35 starting module/unicodedata/test [166 started in total]
__ module/termios/test [164 done in total, somefailed=True] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
module/termios/test/test_termios.py .F...F.F..
=================================== FAILURES ===================================
____________________________ TestTermios.test_tcall ____________________________
self = <test_termios.TestTermios object at 0x00007fa96801f718>
def test_tcall(self):
""" Again - a test that doesnt really test anything
"""
source = py.code.Source("""
import termios
f = termios.tcgetattr(2)
termios.tcsetattr(2, termios.TCSANOW, f)
termios.tcsendbreak(2, 0)
termios.tcdrain(2)
termios.tcflush(2, termios.TCIOFLUSH)
termios.tcflow(2, termios.TCOON)
print('ok!')
""")
f = udir.join("test_tcall.py")
f.write(source)
child = self.spawn(['--withmod-termios', str(f)])
> child.expect('ok!')
module/termios/test/test_termios.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../virt_test/site-packages/pexpect/spawnbase.py:355: in expect
timeout, searchwindowsize, async_)
../virt_test/site-packages/pexpect/spawnbase.py:383: in expect_list
return exp.expect_loop(timeout)
../virt_test/site-packages/pexpect/expect.py:179: in expect_loop
return self.eof(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x00007fa96801f638>
err = EOF('End Of File (EOF). Empty string style platform.',)
def eof(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn._buffer = spawn.buffer_type()
spawn._before = spawn.buffer_type()
spawn.after = EOF
index = self.searcher.eof_index
if index >= 0:
spawn.match = EOF
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = EOF(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E EOF: End Of File (EOF). Empty string style platform.
E <pexpect.pty_spawn.spawn object at 0x00007fa96801f0f8>
E command: /Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python
E args: ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '/tmp/buildbot-x86_64/usession-py3.12-1733/test_tcall.py']
E buffer (last 100 chars): ''
E before (last 100 chars): ''
E after: <class 'pexpect.exceptions.EOF'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: True
E pid: 56742
E child_fd: 16
E closed: False
E timeout: 600
E delimiter: <class 'pexpect.exceptions.EOF'>
E logfile: <_pytest.capture.EncodedFile object at 0x00007fa9704ad2f0>
E logfile_read: None
E logfile_send: None
E maxread: 5000
E ignorecase: False
E searchwindowsize: None
E delaybeforesend: 0.05
E delayafterclose: 0.1
E delayafterterminate: 0.1
E searcher: searcher_re:
E 0: re.compile('ok!')
../virt_test/site-packages/pexpect/expect.py:122: EOF
----------------------------- Captured stdout call -----------------------------
SPAWN: ('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '/tmp/buildbot-x86_64/usession-py3.12-1733/test_tcall.py']) {}
__________________________ TestTermios.test_no_icanon __________________________
self = <test_termios.TestTermios object at 0x00007fa98051be50>
def test_no_icanon(self):
source = py.code.Source("""
import termios
import fcntl
f = termios.tcgetattr(2)
f[3] &= ~termios.ICANON
termios.tcsetattr(2, termios.TCSANOW, f)
f = termios.tcgetattr(2)
assert len([i for i in f[-1] if isinstance(i, int)]) == 2
assert isinstance(f[-1][termios.VMIN], int)
assert isinstance(f[-1][termios.VTIME], int)
print('ok!')
""")
f = udir.join("test_no_icanon.py")
f.write(source)
child = self.spawn(['--withmod-termios', '--withmod-fcntl', str(f)])
> child.expect('ok!')
module/termios/test/test_termios.py:135:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../virt_test/site-packages/pexpect/spawnbase.py:355: in expect
timeout, searchwindowsize, async_)
../virt_test/site-packages/pexpect/spawnbase.py:383: in expect_list
return exp.expect_loop(timeout)
../virt_test/site-packages/pexpect/expect.py:179: in expect_loop
return self.eof(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x00007fa98051bda8>
err = EOF('End Of File (EOF). Empty string style platform.',)
def eof(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn._buffer = spawn.buffer_type()
spawn._before = spawn.buffer_type()
spawn.after = EOF
index = self.searcher.eof_index
if index >= 0:
spawn.match = EOF
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = EOF(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E EOF: End Of File (EOF). Empty string style platform.
E <pexpect.pty_spawn.spawn object at 0x00007fa98051b910>
E command: /Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python
E args: ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '--withmod-fcntl', '/tmp/buildbot-x86_64/usession-py3.12-1733/test_no_icanon.py']
E buffer (last 100 chars): ''
E before (last 100 chars): ''
E after: <class 'pexpect.exceptions.EOF'>
E match: None
E match_index: None
E exitstatus: None
E flag_eof: True
E pid: 57786
E child_fd: 20
E closed: False
E timeout: 600
E delimiter: <class 'pexpect.exceptions.EOF'>
E logfile: <_pytest.capture.EncodedFile object at 0x00007fa9704ad2f0>
E logfile_read: None
E logfile_send: None
E maxread: 5000
E ignorecase: False
E searchwindowsize: None
E delaybeforesend: 0.05
E delayafterclose: 0.1
E delayafterterminate: 0.1
E searcher: searcher_re:
E 0: re.compile('ok!')
../virt_test/site-packages/pexpect/expect.py:122: EOF
----------------------------- Captured stdout call -----------------------------
SPAWN: ('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '--withmod-fcntl', '/tmp/buildbot-x86_64/usession-py3.12-1733/test_no_icanon.py']) {}
__________________________ AppTestTermios.test_values __________________________
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007fa960d6e1a8>
def test_values(self):
import termios
d = {}
for name in dir(termios):
val = getattr(termios, name)
if name.isupper() and type(val) is int:
d[name] = val
> assert sorted(d.items()) == sorted(self.orig_module_dict.items())
E (application-level) AssertionError
[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/termios/test/test_termios.py:162]:8: AssertionError
=========================== short test summary info ============================
FAIL module/termios/test/test_termios.py::TestTermios::()::test_tcall
FAIL module/termios/test/test_termios.py::TestTermios::()::test_no_icanon
FAIL module/termios/test/test_termios.py::AppTestTermios::()::test_values
===================== 3 failed, 7 passed in 190.89 seconds =====================
++ 09:06:44 starting module/zipimport/test [167 started in total]
__ module/zipimport/test [165 done in total, somefailed=False] ________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
module/zipimport/test/apptest_zipimport.py .
========================== 1 passed in 12.17 seconds ===========================
++ 09:06:58 starting module/zlib/test [168 started in total]
__ module/unicodedata/test [166 done in total, somefailed=False] ______________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 24.94 seconds ==========================
++ 09:07:03 starting objspace/fake/test [169 started in total]
__ objspace/fake/test [167 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 30.27 seconds ==========================
++ 09:07:36 starting objspace/std/test [170 started in total]
__ module/zlib/test [168 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 46 items
module/zlib/test/test_zlib.py ..............................................
========================== 46 passed in 39.57 seconds ==========================
++ 09:07:43 starting objspace/test [171 started in total]
__ objspace/test [169 done in total, somefailed=False] ________________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 27.33 seconds =====================
++ 09:08:15 starting sandbox/test [172 started in total]
__ sandbox/test [170 done in total, somefailed=False] _________________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
sandbox/test/test_pypy_interact.py .
========================== 1 passed in 36.35 seconds ===========================
++ 09:08:54 starting tool/bench/test [173 started in total]
__ tool/bench/test [171 done in total, somefailed=False] ______________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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.02 seconds ======================
++ 09:08:55 starting tool/memusage/test [174 started in total]
__ tool/memusage/test [172 done in total, somefailed=False] ___________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
tool/memusage/test/test_log2gnumeric.py .....
=========================== 5 passed in 0.97 seconds ===========================
++ 09:08:57 starting tool/pytest/fake_pytest/test [175 started in total]
__ tool/pytest/fake_pytest/test [173 done in total, somefailed=False] _________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 12.53 seconds ===========================
++ 09:09:12 starting tool/pytest/test [176 started in total]
__ objspace/std/test [174 done in total, somefailed=False] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2242 items
objspace/std/test/apptest_boolobject.py ..........
objspace/std/test/apptest_bytearrayobject.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 ...............................................
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 .................................................................
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 ................................................................................................................................................
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 ...............
================== 2212 passed, 30 skipped in 263.52 seconds ===================
++ 09:12:04 starting tool/release/test [177 started in total]
__ tool/pytest/test [175 done in total, somefailed=False] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 182.94 seconds ====================
++ 09:12:20 starting tool/test [178 started in total]
__ tool/release/test [176 done in total, somefailed=True] _____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 FFs
=================================== FAILURES ===================================
________________________ TestSmarStrip.test_info_symbol ________________________
self = <pypy.tool.release.test.test_smartstrip.TestSmarStrip object at 0x00007fe8048dc560>
exe = local('/private/tmp/buildbot-x86_64/pytest/pytest-of-matti/pytest-681/test_info_symbol0/myprog')
def test_info_symbol(self, exe):
info = info_symbol(exe, "foo")
> assert info == "foo in section .text"
E assert "/bin/sh: lin...o' -ex 'quit'" == 'foo in section .text'
E - /bin/sh: line 1: 60379 Abort trap: 6 gdb /private/tmp/buildbot-x86_64/pytest/pytest-of-matti/pytest-681/test_info_symbol0/myprog -ex 'info symbol foo' -ex 'quit'
E + foo in section .text
tool/release/test/test_smartstrip.py:32: AssertionError
___________________________ TestSmarStrip.test_strip ___________________________
self = <pypy.tool.release.test.test_smartstrip.TestSmarStrip object at 0x00007fe7e03803a0>
exe = local('/private/tmp/buildbot-x86_64/pytest/pytest-of-matti/pytest-681/test_strip0/myprog')
def test_strip(self, exe):
smartstrip(exe, keep_debug=False)
info = info_symbol(exe, "foo")
> assert info.startswith("No symbol table is loaded")
E assert <bound method str.startswith of "/bin/sh: line 1: 60385 Abort trap: 6 ...ytest-of-matti/pytest-681/test_strip0/myprog -ex 'info symbol foo' -ex 'quit'">('No symbol table is loaded')
E + where <bound method str.startswith of "/bin/sh: line 1: 60385 Abort trap: 6 ...ytest-of-matti/pytest-681/test_strip0/myprog -ex 'info symbol foo' -ex 'quit'"> = "/bin/sh: line 1: 60385 Abort trap: 6 gdb /private/tmp/buildbot-x86_64/pytest/pytest-of-matti/pytest-681/test_strip0/myprog -ex 'info symbol foo' -ex 'quit'".startswith
tool/release/test/test_smartstrip.py:37: AssertionError
=========================== short test summary info ============================
FAIL tool/release/test/test_smartstrip.py::TestSmarStrip::()::test_info_symbol
FAIL tool/release/test/test_smartstrip.py::TestSmarStrip::()::test_strip
================ 2 failed, 4 passed, 2 skipped in 25.15 seconds ================
__ tool/test [177 done in total, somefailed=False] ____________________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-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 13.81 seconds ==========================
__ module/thread/test [178 done in total, somefailed=True] ____________________
============================= test session starts ==============================
platform darwin -- Python 2.7.18[pypy-7.3.17-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/.hypothesis/examples')
pytest-2.9.2 from /Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/own-macos-x86-64/build, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 57 items
module/thread/test/test_fork.py sTimed out running ['/Users/matti/build-worker-x86_64/own-macos-x86-64/build/virt_test/bin/python', '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pytest.py', '-p', 'resultlog', '--resultlog=/tmp/buildbot-x86_64/pytest/usession-testrunner-24/203-test-pytest-log', 'module/thread/test'] with cwd='/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy' timeout=4000:
but no error, killing process
program finished with exit code 1
elapsedTime=9518.801411