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

translator/test/test_stackcheck.py::test_gctransformed

def test_gctransformed():
        t = TranslationContext()
        a = t.buildannotator()
        a.build_types(g, [int])
        a.simplify()
        t.buildrtyper().specialize()
        backend_optimizations(t)
        t.checkgraphs()
        n = insert_ll_stackcheck(t)
        t.checkgraphs()
        assert n == 1
        exctransf = t.getexceptiontransformer()
        f_graph = graphof(t, f)
        exctransf.create_exception_handling(f_graph)
        if option.view:
            f_graph.show()
        check(f_graph, 'f')
    
>       class GCTransform(shadowstack.ShadowStackFrameworkGCTransformer):

translator/test/test_stackcheck.py:97: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
translator/test/test_stackcheck.py:98: in GCTransform
    from rpython.memory.gc.generation import GenerationGC as \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import sys
    from rpython.memory.gc.semispace import SemiSpaceGC
    from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
    from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
>   from rpython.memory.gc import env
E     File "/build_dir/rpython-linux-x86-64/build/rpython/memory/gc/env.py", line 423
E   SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

memory/gc/generation.py:5: SyntaxError
---------- Captured stderr call ----------
[rtyper] -=- specialized 9 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 2 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 8 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
builder: rpython-linux-x86-64 build #885
test: translator/test/test_stackcheck/py/test_gctransformed