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

translator/c/test/test_boehm.py::TestUsingBoehm::()::test__del__

self = <rpython.translator.c.test.test_boehm.TestUsingBoehm object at 0x0000000150554330>

    def test__del__(self):
        class State:
            pass
        s = State()
        class A(object):
            def __del__(self):
                s.a_dels += 1
        class B(A):
            def __del__(self):
                s.b_dels += 1
        class C(A):
            pass
        def f():
            s.a_dels = 0
            s.b_dels = 0
            A()
            B()
            C()
            A()
            B()
            C()
            llop.gc__collect(lltype.Void)
            return s.a_dels * 10 + s.b_dels
>       fn = self.getcompiled(f)

translator/c/test/test_boehm.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
translator/c/test/test_boehm.py:40: in getcompiled
    thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
    t.compile_c()
translator/interactive.py:123: in compile_c
    self.driver.compile_c()
translator/driver.py:108: in proc
    return self.proceed(backend_goal)
translator/driver.py:568: in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:109: in _execute
    self._event('planned', goal, taskcallable)
translator/driver.py:612: in _event
    func.task_earlycheck(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <rpython.translator.driver.TranslationDriver object at 0x0000000150531bb0>

    def possibly_check_for_boehm(self):
        if self.config.translation.gc == "boehm":
            from rpython.rtyper.tool.rffi_platform import configure_boehm
            from rpython.translator.platform import CompilationError
            try:
                configure_boehm(self.translator.platform)
            except CompilationError as e:
                i = 'Boehm GC not installed.  Try e.g. "translate.py --gc=minimark"'
>               raise Exception(str(e) + '\n' + i)
E               Exception: CompilationError(err="""
E               	/tmp/buildbot-arm64/usession-pytest3.10-519/platcheck_68.c:92:10: fatal error: 'gc/gc.h' file not found
E               	   92 | #include <gc/gc.h>
E               	      |          ^~~~~~~~~
E               	1 error generated.
E               	""")
E               Boehm GC not installed.  Try e.g. "translate.py --gc=minimark"

translator/driver.py:403: Exception
builder: rpython-macos-arm64 build #264+
test: translator/c/test/test_boehm.py::TestUsingBoehm::()::test__del__