pypy-venv/bin/pypy3 -m pytest -D ../build/pypy --junitxml=test-D.log
in dir /Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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/Cellar
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_REPOSITORY=/opt/homebrew
INFOPATH=/opt/homebrew/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-arm64-buildbot/bin:/opt/homebrew/bin:/opt/homebrew/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/Cellar/openssl@1.1/1.1.1t/lib/pkgconfig
PWD=/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/venv
PYPY_USESSION_DIR=/tmp/buildbot-arm64
SHELL=/bin/zsh
SHLVL=2
SSH_CLIENT=10.0.0.17 36602 22
SSH_CONNECTION=10.0.0.17 36602 10.0.0.16 22
SSH_TTY=/dev/ttys000
TERM=xterm-256color
TMPDIR=/tmp/buildbot-arm64
USER=matti
_=/Users/matti/oss/pypy-arm64-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-arm64/pypy-c-jit-macos-arm64/venv/pypy-venv/lib/pypy3.11/site-packages/pytest/__init__.py
rootdir: /Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build, configfile: pytest.ini
plugins: hypothesis-6.36.2, xdist-3.5.0
collected 2008 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%]
................................. [ 9%]
../build/pypy/interpreter/test/apptest_descrtypecheck.py .. [ 10%]
../build/pypy/interpreter/test/apptest_exceptions.py ........s.......... [ 10%]
....... [ 11%]
../build/pypy/interpreter/test/apptest_exctable_dis.py ......... [ 11%]
../build/pypy/interpreter/test/apptest_exec.py ......................... [ 12%]
[ 12%]
../build/pypy/interpreter/test/apptest_extcall.py ..... [ 13%]
../build/pypy/interpreter/test/apptest_function.py ..................... [ 14%]
................s..................................................... [ 17%]
../build/pypy/interpreter/test/apptest_generator.py .................... [ 18%]
............................................... [ 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 ........................ [ 26%]
.............................. [ 28%]
../build/pypy/interpreter/test/apptest_settrace_jump.py . [ 28%]
../build/pypy/interpreter/test/apptest_sys_settrace.py ................. [ 28%]
........................................................................ [ 32%]
..................................................... [ 35%]
../build/pypy/interpreter/test/apptest_traceback.py ........ [ 35%]
../build/pypy/interpreter/test/apptest_unraisable.py .... [ 35%]
../build/pypy/interpreter/test/apptest_with_leak.py ......... [ 36%]
../build/pypy/module/__builtin__/test/apptest_compile.py ............... [ 37%]
...... [ 37%]
../build/pypy/module/__builtin__/test/apptest_descriptor.py ..... [ 37%]
../build/pypy/module/__builtin__/test/apptest_operator.py ... [ 37%]
../build/pypy/module/__builtin__/test/apptest_print.py ... [ 37%]
../build/pypy/module/__pypy__/test/apptest_picklebuffer.py ...... [ 38%]
../build/pypy/module/_abc/test/apptest_abc.py ... [ 38%]
../build/pypy/module/_ast/test/apptest_ast.py ... [ 38%]
../build/pypy/module/_codecs/test/apptest_codecs.py .. [ 38%]
../build/pypy/module/_collections/test/apptest_defaultdict.py .......... [ 39%]
.... [ 39%]
../build/pypy/module/_collections/test/apptest_deque.py ................ [ 40%]
.......................... [ 41%]
../build/pypy/module/_collections/test/apptest_ordereddict.py .......... [ 41%]
[ 41%]
../build/pypy/module/_io/test/apptest_bufferedio.py . [ 41%]
../build/pypy/module/_io/test/apptest_bytesio.py ................. [ 42%]
../build/pypy/module/_io/test/apptest_io.py ............................ [ 44%]
............... [ 44%]
../build/pypy/module/_io/test/apptest_stringio.py ...................... [ 45%]
..... [ 46%]
../build/pypy/module/_io/test/apptest_textio.py ........................ [ 47%]
......s................. [ 48%]
../build/pypy/module/_multibytecodec/test/apptest_codecs.py ............ [ 49%]
....... [ 49%]
../build/pypy/module/_multibytecodec/test/apptest_incremental.py ....... [ 49%]
............. [ 50%]
../build/pypy/module/_multibytecodec/test/apptest_stream.py ..... [ 50%]
../build/pypy/module/_opcode/test/apptest_opcode.py ..... [ 51%]
../build/pypy/module/_pickle/test/apptest_optional_frames.py .. [ 51%]
../build/pypy/module/_pickle/test/apptest_pickle.py .................... [ 52%]
...........................................s... [ 54%]
../build/pypy/module/_pickle/test/apptest_pypy_extensions.py ........... [ 55%]
................ [ 55%]
../build/pypy/module/_pickle_support/test/apptest__pickle_support.py . [ 55%]
../build/pypy/module/_posixsubprocess/test/apptest_subprocess.py ....... [ 56%]
.F [ 56%]
../build/pypy/module/_pypyjson/test/apptest__pypyjson.py ........ [ 56%]
../build/pypy/module/_rawffi/test/apptest_rawffi.py . [ 56%]
../build/pypy/module/_socket/test/apptest_socket.py .................... [ 57%]
.ss..s............s.ss...........F...sssss [ 59%]
../build/pypy/module/_sre/test/apptest_sre.py .......................... [ 61%]
........................................ [ 63%]
../build/pypy/module/_warnings/test/apptest_warnings.py ........s.s..... [ 63%]
[ 63%]
../build/pypy/module/_weakref/test/apptest_weakref.py .................. [ 64%]
......................... [ 66%]
../build/pypy/module/array/test/apptest_array.py ... [ 66%]
../build/pypy/module/atexit/test/apptest_atexit.py .. [ 66%]
../build/pypy/module/bz2/test/apptest_bz2_compdecomp.py .s... [ 66%]
../build/pypy/module/exceptions/test/apptest_exceptions.py ............. [ 67%]
..................................... [ 69%]
../build/pypy/module/itertools/test/apptest_itertools.py .... [ 69%]
../build/pypy/module/marshal/test/apptest_marshal.py ................... [ 70%]
............................ [ 71%]
../build/pypy/module/math/test/apptest_math.py ............ [ 72%]
../build/pypy/module/posix/test/apptest_posix.py ...F [ 72%]
../build/pypy/module/pyexpat/test/apptest_pyexpat.py ... [ 72%]
../build/pypy/module/signal/test/apptest_signal.py . [ 72%]
../build/pypy/module/struct/test/apptest_struct.py ..................... [ 73%]
..................... [ 74%]
../build/pypy/module/struct/test/apptest_structbuffer.py .. [ 74%]
../build/pypy/module/sys/test/apptest_audit.py ......... [ 75%]
../build/pypy/module/sys/test/apptest_initpath.py . [ 75%]
../build/pypy/module/sys/test/apptest_sys.py . [ 75%]
../build/pypy/module/time/test/apptest_time.py ......................... [ 76%]
................ [ 77%]
../build/pypy/module/token/test/apptest_token.py ........ [ 77%]
../build/pypy/module/zipimport/test/apptest_zipimport.py . [ 77%]
../build/pypy/objspace/std/test/apptest_boolobject.py ......... [ 78%]
../build/pypy/objspace/std/test/apptest_callmethod.py .......... [ 78%]
../build/pypy/objspace/std/test/apptest_complexobject.py ............... [ 79%]
..................... [ 80%]
../build/pypy/objspace/std/test/apptest_contains.py .. [ 80%]
../build/pypy/objspace/std/test/apptest_fstring.py ..................... [ 81%]
[ 81%]
../build/pypy/objspace/std/test/apptest_instmethobject.py ..... [ 81%]
../build/pypy/objspace/std/test/apptest_iterobject.py .................. [ 82%]
... [ 83%]
../build/pypy/objspace/std/test/apptest_memoryobject.py ........ [ 83%]
../build/pypy/objspace/std/test/apptest_operation.py . [ 83%]
../build/pypy/objspace/std/test/apptest_specializedtuple.py ............ [ 84%]
............ [ 84%]
../build/pypy/objspace/std/test/apptest_stringformat.py ................ [ 85%]
.s......s..................s........................ [ 88%]
../build/pypy/objspace/std/test/apptest_tuple.py ....................... [ 89%]
. [ 89%]
../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-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/venv/pypy-venv/lib/pypy3.11/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: : <function test_buggy_case.<locals>.A.__del__ at 0x00000001317fa920>
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-arm64/pypy-c-jit-macos-arm64/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 0x0000000140b2f820>
Traceback (most recent call last):
File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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-arm64/pypy-c-jit-macos-arm64/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, 1981 passed, 24 skipped, 7 warnings in 32.72s ============
program finished with exit code 1
elapsedTime=33.695469