using config pypy/testrunner_cfg.py using config machine_cfg.py running 4 parallel test workers setting MAKEFLAGS to ' ' (space) -- annotator/test -- config/test -- flowspace/test -- tool/algo/test -- tool/cparser/test -- tool/jitlogparser/test -- tool/pytest/test -- tool/test -- rtyper/lltypesystem/module/test -- rtyper/lltypesystem/test -- rtyper/test -- rtyper/tool/test -- memory/gc/test -- memory/gctransform/test -- memory/test/test_gctypelayout.py -- memory/test/test_generational_gc.py -- memory/test/test_growingsemispace_gc.py -- memory/test/test_hybrid_gc.py -- memory/test/test_hybrid_gc_smallheap.py -- memory/test/test_incminimark_gc.py -- memory/test/test_incminimark_gc_cardmarking.py -- memory/test/test_lldict.py -- memory/test/test_minimark_gc.py -- memory/test/test_minimark_gc_cardmarking.py -- memory/test/test_semispace_gc.py -- memory/test/test_support.py -- memory/test/test_transformed_gc.py -- total: 27 to run ++ 08:52:35 starting annotator/test [1 started in total] ++ 08:52:35 starting config/test [2 started in total] ++ 08:52:35 starting flowspace/test [3 started in total] ++ 08:52:35 starting tool/algo/test [4 started in total] __ flowspace/test [1 done in total, somefailed=False] _________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 162 items flowspace/test/test_argument.py ..... flowspace/test/test_checkgraph.py ........ flowspace/test/test_flowcontext.py ..... flowspace/test/test_framestate.py .......... flowspace/test/test_generator.py ..... flowspace/test/test_model.py ......... flowspace/test/test_objspace.py .............................................................xx...................xx..x................ flowspace/test/test_objspace_py2.py .... flowspace/test/test_print_function.py ......... flowspace/test/test_unroll.py .... ==================== 157 passed, 5 xfailed in 17.82 seconds ==================== ++ 08:52:56 starting tool/cparser/test [5 started in total] __ tool/algo/test [2 done in total, somefailed=False] _________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 44 items tool/algo/test/test_bitstring.py .... tool/algo/test/test_color.py ..... tool/algo/test/test_graphlib.py ...s....ss.....s....s....... tool/algo/test/test_regalloc.py .. tool/algo/test/test_sparsemat.py ... tool/algo/test/test_unionfind.py .. ==================== 39 passed, 5 skipped in 22.89 seconds ===================== ++ 08:52:59 starting tool/jitlogparser/test [6 started in total] __ config/test [3 done in total, somefailed=False] ____________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 43 items config/test/test_config.py .................................... config/test/test_parse.py .. config/test/test_support.py s.. config/test/test_translationoption.py .. ==================== 42 passed, 1 skipped in 22.57 seconds ===================== ++ 08:52:59 starting tool/pytest/test [7 started in total] __ tool/pytest/test [4 done in total, somefailed=False] _______________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 1 items tool/pytest/test/test_expecttest.py s ========================== 1 skipped in 0.24 seconds =========================== ++ 08:53:01 starting tool/test [8 started in total] __ tool/jitlogparser/test [5 done in total, somefailed=False] _________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 24 items tool/jitlogparser/test/test_parser.py .......ss...ssss....... tool/jitlogparser/test/test_storage.py . ===================== 18 passed, 6 skipped in 0.49 seconds ===================== ++ 08:53:02 starting rtyper/lltypesystem/module/test [9 started in total] __ tool/cparser/test [6 done in total, somefailed=False] ______________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 21 items tool/cparser/test/test_cts.py ..................... ========================== 21 passed in 5.66 seconds =========================== ++ 08:53:03 starting rtyper/lltypesystem/test [10 started in total] __ tool/test [7 done in total, somefailed=False] ______________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 72 items tool/test/test_ansi_print.py ........ tool/test/test_descriptor.py ... tool/test/test_error.py .... tool/test/test_flattenrec.py . tool/test/test_frozenlist.py . tool/test/test_gcc_cache.py ..... tool/test/test_identitydict.py .......... tool/test/test_killsubprocess.py ... tool/test/test_leakfinder.py ........ tool/test/test_logparser.py ... tool/test/test_nullpath.py . tool/test/test_pairtype.py ....... tool/test/test_runsubprocess.py ..s.. tool/test/test_sourcetools.py ......... tool/test/test_udir.py .. tool/test/test_version.py .. ===================== 71 passed, 1 skipped in 8.47 seconds ===================== ++ 08:53:12 starting rtyper/test [11 started in total] __ annotator/test [8 done in total, somefailed=False] _________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.py rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 697 items annotator/test/test_annrpython.py ......................................................................................x..........................................................................................................................................x........................................................................................xx............. annotator/test/test_annrpython_py2.py ... annotator/test/test_annsimplifyrpython.py ......................................................................................x..........................................................................................................................................x........................................................................................xx................ annotator/test/test_argument.py ...... annotator/test/test_description.py ... annotator/test/test_model.py ..........x.x.......... annotator/test/test_signature.py . =================== 687 passed, 10 xfailed in 45.88 seconds ==================== ++ 08:53:27 starting rtyper/tool/test [12 started in total] __ rtyper/lltypesystem/module/test [9 done in total, somefailed=False] ________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 200 items rtyper/lltypesystem/module/test/test_ll_math.py ............................................................................................................................................................................ rtyper/lltypesystem/module/test/test_llinterp_math.py ............................ ========================= 200 passed in 33.37 seconds ========================== ++ 08:53:41 starting memory/gc/test [13 started in total] __ rtyper/tool/test [10 done in total, somefailed=False] ______________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 38 items rtyper/tool/test/test_mkrffi.py ....... rtyper/tool/test/test_rffi_platform.py ............................ rtyper/tool/test/test_rfficache.py ... ========================== 38 passed in 12.80 seconds ========================== ++ 08:53:42 starting memory/gctransform/test [14 started in total] __ memory/gctransform/test [11 done in total, somefailed=False] _______________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 85 items memory/gctransform/test/test_boehm.py ...... memory/gctransform/test/test_framework.py ................. memory/gctransform/test/test_refcounting.py .s............. memory/gctransform/test/test_shadowcolor.py ................................... memory/gctransform/test/test_statistics.py .. memory/gctransform/test/test_transform.py .......... ==================== 84 passed, 1 skipped in 94.59 seconds ===================== ++ 08:55:17 starting memory/test/test_gctypelayout.py [15 started in total] __ memory/test/test_gctypelayout.py [12 done in total, somefailed=False] ______ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 5 items memory/test/test_gctypelayout.py ..... =========================== 5 passed in 1.36 seconds =========================== ++ 08:55:20 starting memory/test/test_generational_gc.py [16 started in total] __ memory/test/test_generational_gc.py [13 done in total, somefailed=False] ___ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 47 items memory/test/test_generational_gc.py ............................................... ========================== 47 passed in 53.11 seconds ========================== ++ 08:56:19 starting memory/test/test_growingsemispace_gc.py [17 started in total] __ memory/gc/test [14 done in total, somefailed=True] _________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 216 items memory/gc/test/test_direct.py ....................................s............................................................................. memory/gc/test/test_env.py ....... memory/gc/test/test_hook.py ... memory/gc/test/test_incminimark.py FFF memory/gc/test/test_inspector.py .. memory/gc/test/test_minimark.py ... memory/gc/test/test_minimarkpage.py ............... memory/gc/test/test_object_pinning.py ............................................. memory/gc/test/test_rawrefcount.py FsssFsssssFFFFFFFFFsFFF. =================================== FAILURES =================================== ______________________ test_card_marking_words_for_length ______________________ def test_card_marking_words_for_length(): > gc = IncrementalMiniMarkGC(None, card_page_indices=128) memory/gc/test/test_incminimark.py:9: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/incminimark.py:299: in __init__ self._setup_rawrefcount_pyobj_hdr(config) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = config = None def _setup_rawrefcount_pyobj_hdr(self, config): "NOT_RPYTHON" # ob_pypy_link storage: cpyext builds that need the visible PyObject header # to match CPython's {ob_refcnt, ob_type} exactly (abi3 wheel loading) move # the link to a hidden prefix word immediately *before* ob_refcnt, like # PyGC_HEAD; their cpyext allocator reserves that word. Builds that don't # need abi3 compatibility keep the link inline as a regular header field, # as PyPy has always done -- their allocator never reserves a prefix word, # so turning this on without the matching cpyext change corrupts memory # before every allocation. # # translation.rawrefcount_link_prefix is the single source of truth for # this choice; it is False everywhere except where a target explicitly # opts in (see pypy/goal/targetpypystandalone.py, set for the py3.12/abi3 # build). rpython.rlib.rawrefcount.RRC_LINK_PREFIX mirrors this value for # its untranslated (test-only) equivalents and must be kept in sync by hand. > self.rrc_link_prefix = config.rawrefcount_link_prefix E AttributeError: 'NoneType' object has no attribute 'rawrefcount_link_prefix' memory/gc/incminimark.py:3182: AttributeError ______________________ test_card_marking_bytes_for_length ______________________ def test_card_marking_bytes_for_length(): > gc = IncrementalMiniMarkGC(None, card_page_indices=128) memory/gc/test/test_incminimark.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/incminimark.py:299: in __init__ self._setup_rawrefcount_pyobj_hdr(config) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = config = None def _setup_rawrefcount_pyobj_hdr(self, config): "NOT_RPYTHON" # ob_pypy_link storage: cpyext builds that need the visible PyObject header # to match CPython's {ob_refcnt, ob_type} exactly (abi3 wheel loading) move # the link to a hidden prefix word immediately *before* ob_refcnt, like # PyGC_HEAD; their cpyext allocator reserves that word. Builds that don't # need abi3 compatibility keep the link inline as a regular header field, # as PyPy has always done -- their allocator never reserves a prefix word, # so turning this on without the matching cpyext change corrupts memory # before every allocation. # # translation.rawrefcount_link_prefix is the single source of truth for # this choice; it is False everywhere except where a target explicitly # opts in (see pypy/goal/targetpypystandalone.py, set for the py3.12/abi3 # build). rpython.rlib.rawrefcount.RRC_LINK_PREFIX mirrors this value for # its untranslated (test-only) equivalents and must be kept in sync by hand. > self.rrc_link_prefix = config.rawrefcount_link_prefix E AttributeError: 'NoneType' object has no attribute 'rawrefcount_link_prefix' memory/gc/incminimark.py:3182: AttributeError ___________________________ test_set_major_threshold ___________________________ def test_set_major_threshold(): gc = IncrementalMiniMarkGC(None, major_collection_threshold=2.0, > growth_rate_max=1.5) memory/gc/test/test_incminimark.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/incminimark.py:299: in __init__ self._setup_rawrefcount_pyobj_hdr(config) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = config = None def _setup_rawrefcount_pyobj_hdr(self, config): "NOT_RPYTHON" # ob_pypy_link storage: cpyext builds that need the visible PyObject header # to match CPython's {ob_refcnt, ob_type} exactly (abi3 wheel loading) move # the link to a hidden prefix word immediately *before* ob_refcnt, like # PyGC_HEAD; their cpyext allocator reserves that word. Builds that don't # need abi3 compatibility keep the link inline as a regular header field, # as PyPy has always done -- their allocator never reserves a prefix word, # so turning this on without the matching cpyext change corrupts memory # before every allocation. # # translation.rawrefcount_link_prefix is the single source of truth for # this choice; it is False everywhere except where a target explicitly # opts in (see pypy/goal/targetpypystandalone.py, set for the py3.12/abi3 # build). rpython.rlib.rawrefcount.RRC_LINK_PREFIX mirrors this value for # its untranslated (test-only) equivalents and must be kept in sync by hand. > self.rrc_link_prefix = config.rawrefcount_link_prefix E AttributeError: 'NoneType' object has no attribute 'rawrefcount_link_prefix' memory/gc/incminimark.py:3182: AttributeError ________________ TestRawRefCount.test_rawrefcount_objects_basic ________________ self = old = False def test_rawrefcount_objects_basic(self, old=False): p1, p1ref, r1, r1addr, check_alive = ( > self._rawrefcount_pair(42, is_light=True, create_old=old)) memory/gc/test/test_rawrefcount.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = True, is_pyobj = False, create_old = False create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ______________ TestRawRefCount.test_rawrefcount_objects_basic_old ______________ self = def test_rawrefcount_objects_basic_old(self): > self.test_rawrefcount_objects_basic(old=True) memory/gc/test/test_rawrefcount.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/test/test_rawrefcount.py:92: in test_rawrefcount_objects_basic self._rawrefcount_pair(42, is_light=True, create_old=old)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = True, is_pyobj = False, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError _______________ TestRawRefCount.test_pypy_nonlight_dies_quickly ________________ self = old = False def test_pypy_nonlight_dies_quickly(self, old=False): p1, p1ref, r1, r1addr, check_alive = ( > self._rawrefcount_pair(42, is_light=False, create_old=old)) memory/gc/test/test_rawrefcount.py:221: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = False, create_old = False create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ___________ TestRawRefCount.test_pypy_nonlight_survives_from_raw_old ___________ self = def test_pypy_nonlight_survives_from_raw_old(self): > self.test_pypy_nonlight_survives_from_raw(old=True) memory/gc/test/test_rawrefcount.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/test/test_rawrefcount.py:177: in test_pypy_nonlight_survives_from_raw self._rawrefcount_pair(42, is_light=False, create_old=old)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = False, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ___________ TestRawRefCount.test_pypy_nonlight_survives_from_obj_old ___________ self = def test_pypy_nonlight_survives_from_obj_old(self): > self.test_pypy_nonlight_survives_from_obj(old=True) memory/gc/test/test_rawrefcount.py:239: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/test/test_rawrefcount.py:200: in test_pypy_nonlight_survives_from_obj self._rawrefcount_pair(42, is_light=False, create_old=old)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = False, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError _____________ TestRawRefCount.test_pypy_nonlight_dies_quickly_old ______________ self = def test_pypy_nonlight_dies_quickly_old(self): > self.test_pypy_nonlight_dies_quickly(old=True) memory/gc/test/test_rawrefcount.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ memory/gc/test/test_rawrefcount.py:221: in test_pypy_nonlight_dies_quickly self._rawrefcount_pair(42, is_light=False, create_old=old)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = False, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ___ TestRawRefCount.test_pyobject_pypy_link_dies_on_minor_collection[False] ____ self = external = False @py.test.mark.parametrize('external', [False, True]) def test_pyobject_pypy_link_dies_on_minor_collection(self, external): p1, p1ref, r1, r1addr, check_alive = ( > self._rawrefcount_pair(42, is_pyobj=True, force_external=external)) memory/gc/test/test_rawrefcount.py:246: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = False create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ____ TestRawRefCount.test_pyobject_pypy_link_dies_on_minor_collection[True] ____ self = external = True @py.test.mark.parametrize('external', [False, True]) def test_pyobject_pypy_link_dies_on_minor_collection(self, external): p1, p1ref, r1, r1addr, check_alive = ( > self._rawrefcount_pair(42, is_pyobj=True, force_external=external)) memory/gc/test/test_rawrefcount.py:246: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = False create_immortal = False, force_external = True def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError _______________ TestRawRefCount.test_pyobject_dies[False-False] ________________ self = old = False, external = False @py.test.mark.parametrize('old,external', [ (False, False), (True, False), (False, True)]) def test_pyobject_dies(self, old, external): p1, p1ref, r1, r1addr, check_alive = ( self._rawrefcount_pair(42, is_pyobj=True, create_old=old, > force_external=external)) memory/gc/test/test_rawrefcount.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = False create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ________________ TestRawRefCount.test_pyobject_dies[True-False] ________________ self = old = True, external = False @py.test.mark.parametrize('old,external', [ (False, False), (True, False), (False, True)]) def test_pyobject_dies(self, old, external): p1, p1ref, r1, r1addr, check_alive = ( self._rawrefcount_pair(42, is_pyobj=True, create_old=old, > force_external=external)) memory/gc/test/test_rawrefcount.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ________________ TestRawRefCount.test_pyobject_dies[False-True] ________________ self = old = False, external = True @py.test.mark.parametrize('old,external', [ (False, False), (True, False), (False, True)]) def test_pyobject_dies(self, old, external): p1, p1ref, r1, r1addr, check_alive = ( self._rawrefcount_pair(42, is_pyobj=True, create_old=old, > force_external=external)) memory/gc/test/test_rawrefcount.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = False create_immortal = False, force_external = True def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError _________ TestRawRefCount.test_pyobject_survives_from_obj[True-False] __________ self = old = True, external = False @py.test.mark.parametrize('old,external', [ (False, False), (True, False), (False, True)]) def test_pyobject_survives_from_obj(self, old, external): if not old and not external: py.test.skip(_SKIP_UNTRANSLATED) # nursery-move symbolic link only p1, p1ref, r1, r1addr, check_alive = ( self._rawrefcount_pair(42, is_pyobj=True, create_old=old, > force_external=external)) memory/gc/test/test_rawrefcount.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = True create_immortal = False, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError _________ TestRawRefCount.test_pyobject_survives_from_obj[False-True] __________ self = old = False, external = True @py.test.mark.parametrize('old,external', [ (False, False), (True, False), (False, True)]) def test_pyobject_survives_from_obj(self, old, external): if not old and not external: py.test.skip(_SKIP_UNTRANSLATED) # nursery-move symbolic link only p1, p1ref, r1, r1addr, check_alive = ( self._rawrefcount_pair(42, is_pyobj=True, create_old=old, > force_external=external)) memory/gc/test/test_rawrefcount.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = True, create_old = False create_immortal = False, force_external = True def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError ____________ TestRawRefCount.test_pyobject_attached_to_prebuilt_obj ____________ self = def test_pyobject_attached_to_prebuilt_obj(self): p1, p1ref, r1, r1addr, check_alive = ( > self._rawrefcount_pair(42, create_immortal=True)) memory/gc/test/test_rawrefcount.py:303: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = intval = 42, is_light = False, is_pyobj = False, create_old = False create_immortal = True, force_external = False def _rawrefcount_pair(self, intval, is_light=False, is_pyobj=False, create_old=False, create_immortal=False, force_external=False): if is_light: rc = REFCNT_FROM_PYPY_LIGHT else: rc = REFCNT_FROM_PYPY self.trigger = [] self.gc.rawrefcount_init(lambda: self.trigger.append(1)) # if create_immortal: p1 = lltype.malloc(S, immortal=True) else: saved = self.gc.nonlarge_max try: if force_external: self.gc.nonlarge_max = 1 p1 = self.malloc(S) finally: self.gc.nonlarge_max = saved p1.x = intval if create_immortal: self.consider_constant(p1) elif create_old: self.stackroots.append(p1) self._collect(major=False) p1 = self.stackroots.pop() p1ref = lltype.cast_opaque_ptr(llmemory.GCREF, p1) # r1 points at ob_refcnt; the ob_pypy_link prefix is reserved before it r1 = rawrefcount._pyobject_alloc(immortal=create_immortal) r1.c_ob_refcnt = rc r1addr = llmemory.cast_ptr_to_adr(r1) if is_pyobj: assert not is_light self.gc.rawrefcount_create_link_pyobj(p1ref, r1addr) else: self.gc.rawrefcount_create_link_pypy(p1ref, r1addr) assert r1.c_ob_refcnt == rc > assert rawrefcount._ob_link_get(r1) != 0 E assert 0 != 0 E + where 0 = (<* >) E + where = E + where = rawrefcount._ob_link_get memory/gc/test/test_rawrefcount.py:75: AssertionError =========================== short test summary info ============================ FAIL memory/gc/test/test_incminimark.py::test_card_marking_words_for_length FAIL memory/gc/test/test_incminimark.py::test_card_marking_bytes_for_length FAIL memory/gc/test/test_incminimark.py::test_set_major_threshold FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_rawrefcount_objects_basic FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_rawrefcount_objects_basic_old FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pypy_nonlight_dies_quickly FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pypy_nonlight_survives_from_raw_old FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pypy_nonlight_survives_from_obj_old FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pypy_nonlight_dies_quickly_old FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_pypy_link_dies_on_minor_collection[False] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_pypy_link_dies_on_minor_collection[True] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_dies[False-False] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_dies[True-False] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_dies[False-True] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_survives_from_obj[True-False] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_survives_from_obj[False-True] FAIL memory/gc/test/test_rawrefcount.py::TestRawRefCount::()::test_pyobject_attached_to_prebuilt_obj ============= 17 failed, 189 passed, 10 skipped in 166.92 seconds ============== ++ 08:56:28 starting memory/test/test_hybrid_gc.py [18 started in total] __ rtyper/lltypesystem/test [15 done in total, somefailed=False] ______________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 276 items rtyper/lltypesystem/test/test_ll2ctypes.py .............................................................................s.s. rtyper/lltypesystem/test/test_llarena.py .....s....... rtyper/lltypesystem/test/test_llgroup.py .... rtyper/lltypesystem/test/test_llmemory.py ..................................s.... rtyper/lltypesystem/test/test_lloperation.py ......... rtyper/lltypesystem/test/test_lltype.py ............................................................ rtyper/lltypesystem/test/test_rffi.py ................................s...........s..s..... rtyper/lltypesystem/test/test_rtagged.py .............. rtyper/lltypesystem/test/test_ztranslated.py ... =================== 269 passed, 7 skipped in 259.10 seconds ==================== n: 3 Arg 0: 1 Arg 1: 20 Arg 2: 300 ++ 08:57:25 starting memory/test/test_hybrid_gc_smallheap.py [19 started in total] __ memory/test/test_growingsemispace_gc.py [16 done in total, somefailed=False] [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 47 items memory/test/test_growingsemispace_gc.py ............................................... ========================== 47 passed in 63.31 seconds ========================== ++ 08:57:26 starting memory/test/test_incminimark_gc.py [20 started in total] __ memory/test/test_hybrid_gc.py [17 done in total, somefailed=False] _________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 50 items memory/test/test_hybrid_gc.py .................................................. ========================== 50 passed in 60.98 seconds ========================== ++ 08:57:36 starting memory/test/test_incminimark_gc_cardmarking.py [21 started in total] __ memory/test/test_hybrid_gc_smallheap.py [18 done in total, somefailed=False] [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 46 items memory/test/test_hybrid_gc_smallheap.py .............................................. ========================== 46 passed in 43.65 seconds ========================== ++ 08:58:10 starting memory/test/test_lldict.py [22 started in total] __ memory/test/test_lldict.py [19 done in total, somefailed=False] ____________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 5 items memory/test/test_lldict.py ..... =========================== 5 passed in 0.61 seconds =========================== ++ 08:58:12 starting memory/test/test_minimark_gc.py [23 started in total] __ memory/test/test_incminimark_gc.py [20 done in total, somefailed=False] ____ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 52 items memory/test/test_incminimark_gc.py ..................................................s. ==================== 51 passed, 1 skipped in 72.25 seconds ===================== ++ 08:58:41 starting memory/test/test_minimark_gc_cardmarking.py [24 started in total] __ memory/test/test_incminimark_gc_cardmarking.py [21 done in total, somefailed=False] [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 52 items memory/test/test_incminimark_gc_cardmarking.py ..................................................s. ==================== 51 passed, 1 skipped in 75.65 seconds ===================== ++ 08:58:57 starting memory/test/test_semispace_gc.py [25 started in total] __ memory/test/test_minimark_gc.py [22 done in total, somefailed=False] _______ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 48 items memory/test/test_minimark_gc.py ................................................ ========================== 48 passed in 59.43 seconds ========================== ++ 08:59:19 starting memory/test/test_support.py [26 started in total] __ memory/test/test_support.py [23 done in total, somefailed=False] ___________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 9 items memory/test/test_support.py ......... =========================== 9 passed in 3.95 seconds =========================== ++ 08:59:25 starting memory/test/test_transformed_gc.py [27 started in total] __ memory/test/test_minimark_gc_cardmarking.py [24 done in total, somefailed=False] [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 48 items memory/test/test_minimark_gc_cardmarking.py ................................................ ========================== 48 passed in 53.99 seconds ========================== __ memory/test/test_semispace_gc.py [25 done in total, somefailed=False] ______ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 47 items memory/test/test_semispace_gc.py ............................................... ========================== 47 passed in 41.78 seconds ========================== __ rtyper/test [26 done in total, somefailed=False] ___________________________ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 1167 items rtyper/test/test_annlowlevel.py .......... rtyper/test/test_controllerentry.py ........ rtyper/test/test_exception.py ......... rtyper/test/test_extfunc.py ....... rtyper/test/test_extregistry.py ....... rtyper/test/test_generator.py ...x.. rtyper/test/test_llann.py ......................... rtyper/test/test_llannotation.py ... rtyper/test/test_llinterp.py .........................s....... rtyper/test/test_llop.py ........ rtyper/test/test_nongc.py ........ rtyper/test/test_normalizecalls.py ................. rtyper/test/test_rbool.py ........ rtyper/test/test_rbuilder.py ..................... rtyper/test/test_rbuiltin.py ....................s..ss................... rtyper/test/test_rbytearray.py ...... rtyper/test/test_rclass.py ...................................................................x..... rtyper/test/test_rconstantdict.py ..... rtyper/test/test_rdict.py ......................................................................... rtyper/test/test_remptydict.py .. rtyper/test/test_rfloat.py ............................ rtyper/test/test_rint.py ........................s........ rtyper/test/test_rlist.py ...................................................................................................... rtyper/test/test_rordereddict.py ............................................................................................................................................ rtyper/test/test_rpbc.py .................................................................................s..........s.......................................................................................s..........s...... rtyper/test/test_rptr.py ....................... rtyper/test/test_rrange.py ................ rtyper/test/test_rstr.py ......................................................................................... rtyper/test/test_rtuple.py ................................. rtyper/test/test_rtyper.py ........ rtyper/test/test_runicode.py ..........................................................................s..............ssssssssssss... rtyper/test/test_rvirtualizable.py ............. rtyper/test/test_rweakref.py ....... ============= 1143 passed, 22 skipped, 2 xfailed in 468.94 seconds ============= __ memory/test/test_transformed_gc.py [27 done in total, somefailed=False] ____ [platform:msg] Set platform with 'host' cc=None, using cc='clang', version='Unknown' ============================= test session starts ============================== platform darwin -- Python 2.7.18[pypy-7.3.22-final], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/Users/runner/work/pypy/pypy/rpython/.hypothesis/examples') pytest-2.9.2 from /Users/runner/work/pypy/pypy/pytest.pyc rootdir: /Users/runner/work/pypy/pypy/rpython, inifile: pytest.ini plugins: hypothesis-4.39.3 collected 183 items memory/test/test_transformed_gc.py ....s..................s..s.....s..................s..s............s..................s..s.............s.....................s................s.....................s.................s =================== 169 passed, 14 skipped in 275.33 seconds ===================