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

pypy/interpreter/test/test_targetpypy.py::TestTargetPyPy::()::test_run

self = <pypy.interpreter.test.test_targetpypy.TestTargetPyPy object at 0x00007fca012cb9b8>

    def test_run(self):
        config = get_pypy_config(translating=False)
>       entry_point = get_entry_point(config)[0]

interpreter/test/test_targetpypy.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
goal/targetpypystandalone.py:420: in get_entry_point
    w_dict = app.getwdict(self.space)
interpreter/gateway.py:1386: in getwdict
    return space.fromcache(ApplevelCache).getorbuild(self)
../rpython/rlib/cache.py:51: in getorbuild
    result = self._build(key)
interpreter/baseobjspace.py:400: in _build
    return self.build(key)
interpreter/gateway.py:1437: in build
    return build_applevel_dict(app, self.space)
interpreter/gateway.py:1448: in build_applevel_dict
    filename=self.filename)
interpreter/baseobjspace.py:1402: in exec_
    statement = self._cached_compile(filename, statement, 'exec', 0, hidden_applevel)
interpreter/baseobjspace.py:1447: in _cached_compile
    source, filename, mode, flags, hidden_applevel)
interpreter/pycompiler.py:180: in compile
    mod = self._compile_to_ast(source, info)
interpreter/pycompiler.py:170: in _compile_to_ast
    raise OperationError(space.w_SyntaxError, e.find_sourceline_and_wrap_info(space, source, info.filename))
interpreter/pyparser/error.py:93: in find_sourceline_and_wrap_info
    text, space.newbytes(text), 'replace', False, make_replace_error_handler(space), True)
interpreter/unicodehelper.py:537: in _str_decode_utf8_slowpath
    return r, rutf8.check_utf8(r, True), pos
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

s = '        # default (matching CPython behaviour: PYTHONIOENCODING=utf-8 \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd strict,\n'
allow_surrogates = True, start = 0, stop = -1

    def check_utf8(s, allow_surrogates, start=0, stop=-1):
        """Check that 's' is a utf-8-encoded byte string.
    
        Returns the length (number of chars) or raise CheckError.
        If allow_surrogates is False, then also raise if we see any.
        Note also codepoints_in_utf8(), which also computes the length
        faster by assuming that 's' is valid utf-8.
        """
        res = _check_utf8(s, allow_surrogates, start, stop)
        if res >= 0:
            return res
>       raise CheckError(~res)
E       CheckError

../rpython/rlib/rutf8.py:362: CheckError
builder: own-macos-x86-64 build #1268+
test: pypy/interpreter/test/test_targetpypy.py::TestTargetPyPy::()::test_run