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

pypy/module/cpyext/test/test_floatobject.py::TestFloatObject::()::test_floatobject

item = <Function 'test_floatobject'>

    @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:716: in setup_builtin_modules
    self.fromcache(State).build_api()
module\cpyext\state.py:117: in build_api
    self.api_lib = str(api.build_bridge(self.space))
module\cpyext\api.py:1384: in build_bridge
    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\windows.py:290: in _compile_c_file
    self._execute_c_compiler(cc, args, oname)
..\rpython\translator\platform\__init__.py:143: in _execute_c_compiler
    self._handle_error(returncode, stdout, stderr, outname)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <MsvcPlatform cc=cl.exe>, returncode = 3221225477, stdout = ''
stderr = ''
outname = local('d:\\systemtemp\\pytest\\usession-py3.11-63\\module_cache\\module_10.obj')

    def _handle_error(self, returncode, stdout, stderr, outname):
        if returncode != 0:
            # Microsoft compilers write compilation errors to stdout
            stderr = stdout + stderr
            errorfile = outname.new(ext='errors')
            errorfile.write(stderr, mode='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\windows.py:319: CompilationError
builder: own-win-x86-64 build #2312+
test: pypy/module/cpyext/test/test_floatobject.py::TestFloatObject::()::test_floatobject