Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/tool/release/test/test_package.py::TestPackaging::()::test_options

item = <Function 'test_options'>

    @pytest.hookimpl(tryfirst=True)
    def pytest_runtest_setup(item):
        if isinstance(item, py.test.collect.Function):
            config = item.config
            appdirect = (config.getoption('runappdirect') or
                config.getoption('direct_apptest'))
            if (get_marker(item, name='pypy_only') and
                    appdirect and not '__pypy__' in sys.builtin_module_names):
                pytest.skip('PyPy-specific test')
            appclass = item.getparent(py.test.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', {})
                if not appdirect:
                    spaceconfig.setdefault('objspace.std.reinterpretasserts', True)
>               appclass.obj.space = gettestobjspace(**spaceconfig)

conftest.py:205: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tool/pytest/objspace.py:25: in gettestobjspace
    space = maketestobjspace(config)
tool/pytest/objspace.py:35: in maketestobjspace
    space = make_objspace(config)
tool/option.py:33: in make_objspace
    return StdObjSpace(config)
interpreter/baseobjspace.py:467: in __init__
    self.initialize()
objspace/std/objspace.py:118: in initialize
    self.setup_builtin_modules()
interpreter/baseobjspace.py:713: in setup_builtin_modules
    mod.setup_after_space_initialization()
module/_warnings/moduledef.py:17: in setup_after_space_initialization
    state = self.space.fromcache(State)
../rpython/rlib/cache.py:51: in getorbuild
    result = self._build(key)
interpreter/baseobjspace.py:402: in _build
    return callable(self.space)
module/_warnings/interp_warnings.py:13: in __init__
    self.init_filters(space)
module/_warnings/interp_warnings.py:20: in init_filters
    if (not space.sys.get_flag('py3k_warning') and
module/sys/moduledef.py:180: in get_flag
    return space.int_w(space.getattr(self.get('flags'), space.newtext(name)))
interpreter/mixedmodule.py:81: in get
    w_value = self.getdictvalue(space, name)
module/sys/moduledef.py:145: in getdictvalue
    value = MixedModule.getdictvalue(self, space, attr)
interpreter/mixedmodule.py:93: in getdictvalue
    return self._load_lazily(space, name)
interpreter/mixedmodule.py:103: in _load_lazily
    w_value = loader(space)
interpreter/mixedmodule.py:231: in afileloader
    return app.wget(space, attrname)
interpreter/gateway.py:1211: in wget
    w_globals = self.getwdict(space)
interpreter/gateway.py:1204: in getwdict
    return space.fromcache(ApplevelCache).getorbuild(self)
../rpython/rlib/cache.py:51: in getorbuild
    result = self._build(key)
interpreter/baseobjspace.py:411: in _build
    return self.build(key)
interpreter/gateway.py:1255: in build
    return build_applevel_dict(app, self.space)
interpreter/gateway.py:1266: in build_applevel_dict
    filename=self.filename)
interpreter/baseobjspace.py:1403: in exec_
    return statement.exec_code(self, w_globals, w_locals)
interpreter/eval.py:33: in exec_code
    return frame.run()
interpreter/pyframe.py:253: in run
    return self.execute_frame()
interpreter/pyframe.py:290: in execute_frame
    raise self._convert_unexpected_exception(e)
interpreter/pyframe.py:943: in _convert_unexpected_exception
    operr = error.get_converted_unexpected_exception(self.space, e)
interpreter/pyframe.py:286: in execute_frame
    executioncontext)
interpreter/pyopcode.py:64: in dispatch
    next_instr = self.handle_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:71: in handle_bytecode
    next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
interpreter/pyopcode.py:322: in dispatch_bytecode
    self.IMPORT_NAME(oparg, next_instr)
interpreter/pyopcode.py:1065: in IMPORT_NAME
    w_locals, w_fromlist)
interpreter/baseobjspace.py:1210: in call_function
    return w_func.funccall(*args_w)
interpreter/function.py:124: in funccall
    return self.call_args(Arguments(self.space, list(args_w)))
interpreter/function.py:68: in call_args
    w_res = self.getcode().funcrun(self, args)
interpreter/gateway.py:781: in funcrun
    return BuiltinCode.funcrun_obj(self, func, None, args)
interpreter/gateway.py:795: in funcrun_obj
    self.handle_exception(space, e)
interpreter/gateway.py:819: in handle_exception
    raise error.get_converted_unexpected_exception(space, e)
interpreter/gateway.py:789: in funcrun_obj
    w_result = activation._run(space, scope_w)
module/imp/importing.py:293: in importhook
    w_fromlist, tentative=True)
module/imp/importing.py:317: in absolute_import
    w_fromlist, tentative)
module/imp/importing.py:326: in absolute_import_with_lock
    w_fromlist, tentative)
module/imp/importing.py:404: in _absolute_import
    tentative=tentative)
module/imp/importing.py:703: in load_part
    space, modulename, w_modulename, partname, w_path)
module/imp/importing.py:593: in find_module
    stream = streamio.open_file_as_stream(filename, filemode)
../rpython/rlib/streamio.py:88: in open_file_as_stream
    stream = open_path_helper(path, os_flags, basemode == "a", signal_checker)
../rpython/rlib/streamio.py:123: in open_path_helper
    fd = rposix.open(path, os_flags, 0666)
../rpython/rlib/rposix.py:470: in open
    fd = c_open(_as_bytes0(path), flags, mode)
../rpython/rtyper/lltypesystem/rffi.py:321: in wrapper
    res = call_external_function(*real_args)
../rpython/rlib/rgil.py:167: in release
    _emulated_gil_holder.release()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <rpython.rlib.rgil.EmulatedGilHolder instance at 0x00000001382176e0>

    def release(self):
>       assert self._tid == self._get_ident()
E       assert 0 == 8379343552
E        +  where 0 = 0
E        +    where 0 = <rpython.rlib.rgil.EmulatedGilHolder instance at 0x00000001382176e0>._tid
E        +  and   8379343552 = <bound method EmulatedGilHolder._get_ident of <rpython.rlib.rgil.EmulatedGilHolder instance at 0x00000001382176e0>>()
E        +    where <bound method EmulatedGilHolder._get_ident of <rpython.rlib.rgil.EmulatedGilHolder instance at 0x00000001382176e0>> = <rpython.rlib.rgil.EmulatedGilHolder instance at 0x00000001382176e0>._get_ident

../rpython/rlib/rgil.py:131: AssertionError
builder: own-macos-arm64 build #1312+
test: pypy/tool/release/test/test_package.py::TestPackaging::()::test_options