pypy-venv/bin/pypy3 -m pytest -D ../build/pypy --junitxml=test-D.log in dir /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv (timeout 1200 secs) watching logfiles {'pytestLog': 'test-D.log'} argv: ['pypy-venv/bin/pypy3', '-m', 'pytest', '-D', '../build/pypy', '--junitxml=test-D.log'] environment: HOME=/Users/matti HOMEBREW_CELLAR=/opt/homebrew_x86_64/Cellar HOMEBREW_PREFIX=/opt/homebrew_x86_64 HOMEBREW_REPOSITORY=/opt/homebrew_x86_64 INFOPATH=/opt/homebrew_x86_64/share/info: LANG=en_US.UTF-8 LC_ADDRESS=en_AU.UTF-8 LC_IDENTIFICATION=en_AU.UTF-8 LC_MEASUREMENT=en_AU.UTF-8 LC_MONETARY=en_AU.UTF-8 LC_NAME=en_AU.UTF-8 LC_NUMERIC=en_AU.UTF-8 LC_PAPER=en_AU.UTF-8 LC_TELEPHONE=en_AU.UTF-8 LC_TIME=en_AU.UTF-8 LOGNAME=matti OLDPWD=/Users/matti PATH=/Users/matti/oss/pypy-x86_64-buildbot/bin:/opt/homebrew_x86_64/bin:/opt/homebrew_x86_64/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin PKG_CONFIG_PATH=/opt/homebrew_x86_64/opt/openssl@1.1/lib/pkgconfig PWD=/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv PYPY_USESSION_DIR=/tmp/buildbot-x86_64 SHELL=/bin/zsh SHLVL=2 SSH_CLIENT=10.0.0.18 58812 22 SSH_CONNECTION=10.0.0.18 58812 10.0.0.16 22 SSH_TTY=/dev/ttys000 TERM=tmux-256color TMPDIR=/tmp/buildbot-x86_64 USER=matti _=/Users/matti/oss/pypy-x86_64-buildbot/bin/buildslave using PTY: False ============================= test session starts ============================== platform darwin -- Python 3.11.15[pypy-7.3.24-alpha], pytest-6.2.5, py-1.11.0, pluggy-1.6.0 pytest-6.2.5 from /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/pypy-venv/lib/pypy3.11/site-packages/pytest/__init__.py rootdir: /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build, configfile: pytest.ini plugins: hypothesis-6.36.2, xdist-3.5.0 collected 1955 items ../build/pypy/interpreter/astcompiler/test/apptest_compiler.py ...... [ 0%] ../build/pypy/interpreter/astcompiler/test/apptest_exceptiongroup.py ... [ 0%] ...................... [ 1%] ../build/pypy/interpreter/astcompiler/test/apptest_misc.py ............. [ 2%] .. [ 2%] ../build/pypy/interpreter/astcompiler/test/apptest_patma.py ............ [ 2%] .......................... [ 4%] ../build/pypy/interpreter/pyparser/test/apptest_parsestring.py ...... [ 4%] ../build/pypy/interpreter/test/apptest_annotations.py .................. [ 5%] ........ [ 5%] ../build/pypy/interpreter/test/apptest_annotations_string.py ...... [ 6%] ../build/pypy/interpreter/test/apptest_buffer.py ..... [ 6%] ../build/pypy/interpreter/test/apptest_class.py ................ [ 7%] ../build/pypy/interpreter/test/apptest_coroutine.py .................... [ 8%] ................................. [ 10%] ../build/pypy/interpreter/test/apptest_descrtypecheck.py .. [ 10%] ../build/pypy/interpreter/test/apptest_exceptions.py ........s.......... [ 11%] ....... [ 11%] ../build/pypy/interpreter/test/apptest_exctable_dis.py ......... [ 11%] ../build/pypy/interpreter/test/apptest_exec.py ......................... [ 13%] [ 13%] ../build/pypy/interpreter/test/apptest_extcall.py ..... [ 13%] ../build/pypy/interpreter/test/apptest_function.py ..................... [ 14%] ................s..................................................... [ 18%] ../build/pypy/interpreter/test/apptest_generator.py .................... [ 19%] ............................................... [ 21%] ../build/pypy/interpreter/test/apptest_nestedscope.py .................. [ 22%] [ 22%] ../build/pypy/interpreter/test/apptest_pycode.py .... [ 22%] ../build/pypy/interpreter/test/apptest_pyframe.py ...................... [ 23%] .......................................... [ 25%] ../build/pypy/interpreter/test/apptest_raise.py ........................ [ 27%] .............................. [ 28%] ../build/pypy/interpreter/test/apptest_settrace_jump.py . [ 28%] ../build/pypy/interpreter/test/apptest_sys_settrace.py ................. [ 29%] ........................................................................ [ 33%] ..................................................... [ 36%] ../build/pypy/interpreter/test/apptest_traceback.py ........ [ 36%] ../build/pypy/interpreter/test/apptest_unraisable.py .... [ 36%] ../build/pypy/interpreter/test/apptest_with_leak.py ......... [ 37%] ../build/pypy/module/__builtin__/test/apptest_compile.py ............... [ 37%] ...... [ 38%] ../build/pypy/module/__builtin__/test/apptest_descriptor.py ..... [ 38%] ../build/pypy/module/__builtin__/test/apptest_operator.py ... [ 38%] ../build/pypy/module/__builtin__/test/apptest_print.py ... [ 38%] ../build/pypy/module/__pypy__/test/apptest_picklebuffer.py ...... [ 39%] ../build/pypy/module/_abc/test/apptest_abc.py ... [ 39%] ../build/pypy/module/_ast/test/apptest_ast.py ... [ 39%] ../build/pypy/module/_codecs/test/apptest_codecs.py .. [ 39%] ../build/pypy/module/_collections/test/apptest_defaultdict.py .......... [ 39%] .... [ 40%] ../build/pypy/module/_collections/test/apptest_deque.py ................ [ 40%] .......................... [ 42%] ../build/pypy/module/_collections/test/apptest_ordereddict.py .......... [ 42%] [ 42%] ../build/pypy/module/_io/test/apptest_bufferedio.py . [ 42%] ../build/pypy/module/_io/test/apptest_bytesio.py ................. [ 43%] ../build/pypy/module/_io/test/apptest_io.py ............................ [ 45%] ............... [ 45%] ../build/pypy/module/_io/test/apptest_stringio.py ...................... [ 47%] ..... [ 47%] ../build/pypy/module/_io/test/apptest_textio.py ........................ [ 48%] ......s................. [ 49%] ../build/pypy/module/_multibytecodec/test/apptest_codecs.py ............ [ 50%] ....... [ 50%] ../build/pypy/module/_multibytecodec/test/apptest_incremental.py ....... [ 51%] ............. [ 51%] ../build/pypy/module/_multibytecodec/test/apptest_stream.py ..... [ 52%] ../build/pypy/module/_opcode/test/apptest_opcode.py ..... [ 52%] ../build/pypy/module/_pickle/test/apptest_optional_frames.py .. [ 52%] ../build/pypy/module/_pickle/test/apptest_pickle.py .................... [ 53%] ...........................................s. [ 55%] ../build/pypy/module/_pickle/test/apptest_pypy_extensions.py ........... [ 56%] ................ [ 57%] ../build/pypy/module/_pickle_support/test/apptest__pickle_support.py . [ 57%] ../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py ....... [ 57%] .F [ 57%] ../build/pypy/module/_pypyjson/test/apptest__pypyjson.py ........ [ 58%] ../build/pypy/module/_rawffi/test/apptest_rawffi.py . [ 58%] ../build/pypy/module/_socket/test/apptest_socket.py .................... [ 59%] .ss..s............s.ss...........F...sssss [ 61%] ../build/pypy/module/_sre/test/apptest_sre.py .......................... [ 62%] ........................................ [ 64%] ../build/pypy/module/_warnings/test/apptest_warnings.py ........s.s..... [ 65%] [ 65%] ../build/pypy/module/_weakref/test/apptest_weakref.py .................. [ 66%] ......................... [ 67%] ../build/pypy/module/array/test/apptest_array.py ... [ 67%] ../build/pypy/module/atexit/test/apptest_atexit.py .. [ 67%] ../build/pypy/module/bz2/test/apptest_bz2_compdecomp.py .s... [ 68%] ../build/pypy/module/exceptions/test/apptest_exceptions.py ............. [ 68%] ..................................... [ 70%] ../build/pypy/module/itertools/test/apptest_itertools.py .... [ 70%] ../build/pypy/module/marshal/test/apptest_marshal.py ................... [ 71%] ............................ [ 73%] ../build/pypy/module/math/test/apptest_math.py ............ [ 73%] ../build/pypy/module/posix/test/apptest_posix.py ...F [ 74%] ../build/pypy/module/pyexpat/test/apptest_pyexpat.py ... [ 74%] ../build/pypy/module/signal/test/apptest_signal.py . [ 74%] ../build/pypy/module/struct/test/apptest_struct.py ..................... [ 75%] ..................... [ 76%] ../build/pypy/module/struct/test/apptest_structbuffer.py .. [ 76%] ../build/pypy/module/sys/test/apptest_audit.py ......... [ 77%] ../build/pypy/module/sys/test/apptest_initpath.py . [ 77%] ../build/pypy/module/sys/test/apptest_sys.py . [ 77%] ../build/pypy/module/time/test/apptest_time.py ......................... [ 78%] ................ [ 79%] ../build/pypy/module/token/test/apptest_token.py ........ [ 79%] ../build/pypy/module/zipimport/test/apptest_zipimport.py . [ 79%] ../build/pypy/objspace/std/test/apptest_boolobject.py ......... [ 80%] ../build/pypy/objspace/std/test/apptest_callmethod.py .......... [ 80%] ../build/pypy/objspace/std/test/apptest_complexobject.py ............... [ 81%] ..................... [ 82%] ../build/pypy/objspace/std/test/apptest_contains.py .. [ 82%] ../build/pypy/objspace/std/test/apptest_fstring.py ..................... [ 83%] [ 83%] ../build/pypy/objspace/std/test/apptest_instmethobject.py ..... [ 83%] ../build/pypy/objspace/std/test/apptest_iterobject.py .................. [ 84%] ... [ 85%] ../build/pypy/objspace/std/test/apptest_memoryobject.py ........ [ 85%] ../build/pypy/objspace/std/test/apptest_operation.py . [ 85%] ../build/pypy/objspace/std/test/apptest_stringformat.py ................ [ 86%] .s......s..................s........................ [ 88%] ../build/pypy/objspace/std/test/apptest_typeobjject.py ........ [ 89%] ../build/pypy/objspace/std/test/apptest_unicode.py ..................... [ 90%] ......s................................................................. [ 94%] ......................... [ 95%] ../build/pypy/objspace/std/test/apptest_userobject.py .................. [ 96%] ...... [ 96%] ../build/pypy/objspace/test/apptest_binop_overriding.py . [ 96%] ../build/pypy/objspace/test/apptest_descriptor.py ....s.... [ 97%] ../build/pypy/objspace/test/apptest_descroperation.py ................s. [ 98%] ..................................... [ 99%] ../build/pypy/tool/pytest/fake_pytest/test/apptest_fake_pytest.py . [100%] =================================== FAILURES =================================== _____________________________ test_restore_signals _____________________________ def test_restore_signals(): import posix as os # Copied from lib-python/3/subprocess._execute_child # when calling subprocess.check_output(['cat', '/proc/self/status'], # restore_signals=True, universal_newlines=True) def check_output(restore_signals): c2pread, c2pwrite = os.pipe() errpipe_read, errpipe_write = os.pipe() try: low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) args = [b'cat', b'/proc/self/status'] executable_list=[b'/usr/bin/cat'] close_fds = True fds_to_keep = (errpipe_write,) cwd = None env_list = None p2cread = p2cwrite = -1 errread = errwrite = umask = -1 call_setsid = False pgid_to_set = -1 preexec_fn = None gid = gids = uid = None pid = _posixsubprocess.fork_exec(args, executable_list, close_fds, fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, call_setsid, pgid_to_set, gid, gids, uid, umask, preexec_fn, subprocess._USE_VFORK) os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break if errpipe_data: newpid, sts = os.waitpid(pid, 0) raise RuntimeError('running commande returned %s' % sts) out = os.read(c2pread, 50000) finally: os.close(c2pwrite) os.close(c2pread) os.close(errpipe_read) return out sig_ign_mask1 = '' sig_ign_mask2 = '' > for line in check_output(True).splitlines(): ../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ restore_signals = True def check_output(restore_signals): c2pread, c2pwrite = os.pipe() errpipe_read, errpipe_write = os.pipe() try: low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) args = [b'cat', b'/proc/self/status'] executable_list=[b'/usr/bin/cat'] close_fds = True fds_to_keep = (errpipe_write,) cwd = None env_list = None p2cread = p2cwrite = -1 errread = errwrite = umask = -1 call_setsid = False pgid_to_set = -1 preexec_fn = None gid = gids = uid = None pid = _posixsubprocess.fork_exec(args, executable_list, close_fds, fds_to_keep, cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, call_setsid, pgid_to_set, gid, gids, uid, umask, preexec_fn, subprocess._USE_VFORK) os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break if errpipe_data: newpid, sts = os.waitpid(pid, 0) > raise RuntimeError('running commande returned %s' % sts) E RuntimeError: running commande returned 65280 ../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py:277: RuntimeError ___________________________ test_tcp_bytearray_name ____________________________ def test_tcp_bytearray_name(): import _socket as socket if not hasattr(socket, 'AF_UNIX'): pytest.skip('AF_UNIX not supported.') s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) > s.bind(bytearray(b"\x00python\x00test\x00")) E FileNotFoundError: [Errno 2] No such file or directory ../build/pypy/module/_socket/test/apptest_socket.py:830: FileNotFoundError __________________________ test_all_pathconf_defined ___________________________ def test_all_pathconf_defined(): import sys import posix try: fd = sys.stdin.fileno() except ValueError: # translated test run with a fake sys.stdin with no fileno fd = 1 for name in posix.pathconf_names: > posix.fpathconf(fd, name) # does not crash E OSError: [Errno 22] Invalid argument ../build/pypy/module/posix/test/apptest_posix.py:66: OSError =============================== warnings summary =============================== ../build/pypy/objspace/std/test/apptest_unicode.py:650 /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/objspace/std/test/apptest_unicode.py:650: DeprecationWarning: invalid escape sequence '\?' ('\?', b'+AFw?'), pypy/module/_sre/test/apptest_sre.py::test_magic /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/module/_sre/test/apptest_sre.py:54: DeprecationWarning: module 'sre_constants' is deprecated import _sre, sre_constants pypy/module/_sre/test/apptest_sre.py::test_no_pattern /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/module/_sre/test/apptest_sre.py:271: DeprecationWarning: module 'sre_compile' is deprecated import sre_compile, sre_parse pypy/module/_sre/test/apptest_sre.py::test_no_pattern /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/module/_sre/test/apptest_sre.py:271: DeprecationWarning: module 'sre_parse' is deprecated import sre_compile, sre_parse pypy/module/_warnings/test/apptest_warnings.py::test_defaults /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/module/_warnings/test/apptest_warnings.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources pypy/module/_weakref/test/apptest_weakref.py::test_buggy_case /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/pypy-venv/lib/pypy3.11/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: : <function test_buggy_case.<locals>.A.__del__ at 0x00007fe248cf63e0> TypeError: test_buggy_case.<locals>.A.__del__() takes 0 positional arguments but 1 was given warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) pypy/module/_weakref/test/apptest_weakref.py::test_callback_raises /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/pypy-venv/lib/pypy3.11/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: weakref callback : <function test_callback_raises.<locals>.callback at 0x00007fe25b1b0da0> Traceback (most recent call last): File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/module/_weakref/test/apptest_weakref.py", line 498, in callback explode NameError: name 'explode' is not defined warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/warnings.html - generated xml file: /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/venv/test-D.log - =========================== short test summary info ============================ FAILED ../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py::test_restore_signals FAILED ../build/pypy/module/_socket/test/apptest_socket.py::test_tcp_bytearray_name FAILED ../build/pypy/module/posix/test/apptest_posix.py::test_all_pathconf_defined =========== 3 failed, 1928 passed, 24 skipped, 7 warnings in 35.91s ============ program finished with exit code 1 elapsedTime=37.271518