pypy/tool/test/test_getdocstrings.py::TestDocStringInserter::()::test_mkfilelist
item = <Function 'test_mkfilelist'>
@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:733: in setup_builtin_modules
self.install_mixedmodule('zipimport')
interpreter/baseobjspace.py:707: in install_mixedmodule
self.setbuiltinmodule(mixedname)
interpreter/baseobjspace.py:545: in setbuiltinmodule
mod.install()
module/zipimport/moduledef.py:25: in install
directory=".")
module/_frozen_importlib/moduledef.py:29: in _compile_bootstrap_module
code_w.exec_code(space, w_dict, w_dict)
interpreter/eval.py:33: in exec_code
return frame.run()
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:349: in dispatch_bytecode
self.IMPORT_NAME(oparg, next_instr)
interpreter/pyopcode.py:1129: in IMPORT_NAME
w_locals, w_fromlist, w_flag)
interpreter/baseobjspace.py:1241: in call_function
return self.call_args(w_func, args)
objspace/descroperation.py:192: in call_args
return w_obj.call_args(args)
interpreter/function.py:81: in call_args
w_res = self.getcode().funcrun(self, args)
interpreter/gateway.py:869: in funcrun
return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:884: in funcrun_obj
self.handle_exception(space, e)
interpreter/gateway.py:908: in handle_exception
raise error.get_converted_unexpected_exception(space, e)
interpreter/gateway.py:878: in funcrun_obj
w_result = activation._run(space, scope_w)
module/_frozen_importlib/interp_import.py:96: in interp___import__
w_level)
interpreter/baseobjspace.py:1241: in call_function
return self.call_args(w_func, args)
objspace/descroperation.py:192: in call_args
return w_obj.call_args(args)
interpreter/function.py:81: in call_args
w_res = self.getcode().funcrun(self, args)
interpreter/pycode.py:280: in funcrun
return frame.run(func.name, func.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:193: in funccall_valuestack
natural_arity - nargs, dropvalues)
interpreter/function.py:231: in _flat_pycall_defaults
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:187: in funccall_valuestack
return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:214: in _flat_pycall
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:187: in funccall_valuestack
return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:214: in _flat_pycall
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:187: in funccall_valuestack
return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:214: in _flat_pycall
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:187: in funccall_valuestack
return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:214: in _flat_pycall
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:313: in dispatch_bytecode
self.CALL_METHOD(oparg, next_instr)
objspace/std/callmethod.py:93: in CALL_METHOD
w_callable, n, f, methodcall=w_self is not None, dropvalues=n_args+2)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:187: in funccall_valuestack
return self._flat_pycall(code, nargs, frame, dropvalues)
interpreter/function.py:214: in _flat_pycall
return new_frame.run(self.name, self.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:307: in dispatch_bytecode
self.CALL_FUNCTION(oparg, next_instr)
interpreter/pyopcode.py:1399: in CALL_FUNCTION
w_result = self.space.call_valuestack(w_function, nargs, self, dropvalues=nargs+1)
interpreter/baseobjspace.py:1264: in call_valuestack
nargs, frame, methodcall=methodcall, dropvalues=dropvalues)
interpreter/function.py:203: in funccall_valuestack
return self.call_args(args)
interpreter/function.py:81: in call_args
w_res = self.getcode().funcrun(self, args)
interpreter/pycode.py:280: in funcrun
return frame.run(func.name, func.qualname)
interpreter/pyframe.py:256: in run
return self.execute_frame()
interpreter/pyframe.py:353: in execute_frame
raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:844: in _convert_unexpected_exception
operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:349: in execute_frame
executioncontext)
interpreter/pyopcode.py:68: in dispatch
next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:74: in handle_bytecode
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:311: in dispatch_bytecode
self.CALL_FUNCTION_EX(oparg, next_instr)
interpreter/pyopcode.py:1441: in CALL_FUNCTION_EX
w_result = self.space.call_args(w_function, args)
objspace/descroperation.py:192: in call_args
return w_obj.call_args(args)
interpreter/function.py:81: in call_args
w_res = self.getcode().funcrun(self, args)
interpreter/gateway.py:869: in funcrun
return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:884: in funcrun_obj
self.handle_exception(space, e)
interpreter/gateway.py:908: in handle_exception
raise error.get_converted_unexpected_exception(space, e)
interpreter/gateway.py:878: in funcrun_obj
w_result = activation._run(space, scope_w)
module/imp/interp_imp.py:65: in create_builtin
return space.getbuiltinmodule(name, force_init=True, reuse=reuse)
interpreter/baseobjspace.py:583: in getbuiltinmodule
w_mod.init(self)
interpreter/mixedmodule.py:66: in init
Module.init(self, space)
interpreter/module.py:65: in init
self.startup(space)
module/time/moduledef.py:63: in startup
interp_time._init_timezone(space)
module/time/interp_time.py:578: in _init_timezone
t = (((c_time(lltype.nullptr(rffi.TIME_TP.TO))) / YEAR) * YEAR)
../rpython/rtyper/lltypesystem/rffi.py:321: in wrapper
res = call_external_function(*real_args)
../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-2573/pypy/module/cpyext/src/pytime.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 #1273+
test: pypy/tool/test/test_getdocstrings.py::TestDocStringInserter::()::test_mkfilelist