pypy/tool/release/test/test_package.py::TestPackaging::()::test_dir_structure
item = <Function 'test_dir_structure'>
@pytest.hookimpl(tryfirst=True)
def pytest_runtest_setup(item):
if isinstance(item, pytest.Function):
config = item.config
if get_marker(item, name='pypy_only'):
if config.applevel is not None and not config.applevel.is_pypy:
pytest.skip('PyPy-specific test')
appclass = item.getparent(pytest.Class)
if appclass is not None:
from pypy.tool.pytest.objspace import gettestobjspace
# Make cls.space and cls.runappdirect available in tests.
spaceconfig = getattr(appclass.obj, 'spaceconfig', {})
> appclass.obj.space = gettestobjspace(**spaceconfig)
conftest.py:254:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tool/pytest/objspace.py:24: in gettestobjspace
space = maketestobjspace(config)
tool/pytest/objspace.py:34: in maketestobjspace
space = make_objspace(config)
tool/option.py:33: in make_objspace
return StdObjSpace(config)
interpreter/baseobjspace.py:458: in __init__
self.initialize()
objspace/std/objspace.py:118: in initialize
self.setup_builtin_modules()
interpreter/baseobjspace.py:722: in setup_builtin_modules
self.install_mixedmodule('_frozen_importlib')
interpreter/baseobjspace.py:707: in install_mixedmodule
self.setbuiltinmodule(mixedname)
interpreter/baseobjspace.py:545: in setbuiltinmodule
mod.install()
module/_frozen_importlib/moduledef.py:43: in install
space, '_bootstrap_external', w_mod.w_name, w_mod.w_dict)
module/_frozen_importlib/moduledef.py:24: in _compile_bootstrap_module
pathname, 'exec', 0)
module/_frozen_importlib/moduledef.py:69: in _cached_compile
code_w = interp_marshal.loads(space, w_bin)
module/marshal/interp_marshal.py:52: in loads
return _loads(space, w_str)
module/marshal/interp_marshal.py:57: in _loads
obj = u.load_w_obj()
module/marshal/interp_marshal.py:420: in load_w_obj
return self._get_w_obj(allow_null)
module/marshal/interp_marshal.py:406: in _get_w_obj
w_ret = func(space, self, tc)
objspace/std/marshal_impl.py:437: in unmarshal_pycode
consts_w = _unmarshal_tuple_w(u)
objspace/std/marshal_impl.py:418: in _unmarshal_tuple_w
w_obj = u.load_w_obj()
module/marshal/interp_marshal.py:420: in load_w_obj
return self._get_w_obj(allow_null)
module/marshal/interp_marshal.py:406: in _get_w_obj
w_ret = func(space, self, tc)
objspace/std/marshal_impl.py:328: in unmarshal_tuple
items_w = u.get_tuple_w(single_byte_size=True)
module/marshal/interp_marshal.py:442: in get_tuple_w
res_w[idx] = self.load_w_obj()
module/marshal/interp_marshal.py:420: in load_w_obj
return self._get_w_obj(allow_null)
module/marshal/interp_marshal.py:406: in _get_w_obj
w_ret = func(space, self, tc)
objspace/std/marshal_impl.py:443: in unmarshal_pycode
filename = space.bytes0_w(space.fsencode(w_fn))
interpreter/baseobjspace.py:1964: in fsencode
return fsencode(space, w_obj)
interpreter/unicodehelper.py:114: in fsencode
bytes = utf8_encode_locale_surrogateescape(utf8, ulen)
module/_codecs/locale.py:84: in utf8_encode_locale_surrogateescape
sbuf = pypy_wchar2char(ubuf, errorposp)
../rpython/rtyper/lltypesystem/lltype.py:1384: in __call__
return callb(*args)
../rpython/rtyper/lltypesystem/ll2ctypes.py:1339: in __call__
self.natural_arity)
../rpython/rtyper/lltypesystem/ll2ctypes.py:1236: in get_ctypes_callable
symbolic=True)
../rpython/translator/tool/cbuild.py:345: in compile_shared_lib
standalone=False))
../rpython/translator/platform/__init__.py:57: in compile
ofiles = self._compile_o_files(cfiles, eci, standalone)
../rpython/translator/platform/__init__.py:79: in _compile_o_files
ofiles.append(self._compile_c_file(self.cc, cfile, compile_args))
../rpython/translator/platform/posix.py:44: in _compile_c_file
cwd=str(cfile.dirpath()))
../rpython/translator/platform/__init__.py:143: in _execute_c_compiler
self._handle_error(returncode, stdout, stderr, outname)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Darwin_arm64 cc=clang>, returncode = -10, stdout = '', stderr = ''
outname = local('/tmp/buildbot-arm64/usession-py3.11-5916/pypy/module/_codecs/locale_codec.o')
def _handle_error(self, returncode, stdout, stderr, outname):
if returncode != 0:
errorfile = outname.new(ext='errors')
errorfile.write(stderr, 'wb')
if self.log_errors:
stderrlines = stderr.splitlines()
for line in stderrlines:
log.Error(line)
# ^^^ don't use ERROR, because it might actually be fine.
# Also, ERROR confuses lib-python/conftest.py.
> raise CompilationError(stdout, stderr)
E CompilationError: CompilationError(out="""
E """)
../rpython/translator/platform/__init__.py:155: CompilationError
builder: own-macos-arm64 build #1313+
test: pypy/tool/release/test/test_package.py::TestPackaging::()::test_dir_structure