File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1100,7 +1100,13 @@ def test_getallocatedblocks(self):
11001100 # code objects is a large fraction of the total number of
11011101 # references, this can cause the total number of allocated
11021102 # blocks to exceed the total number of references.
1103- if not support .Py_GIL_DISABLED :
1103+ #
1104+ # For some reason, iOS seems to trigger the "unlikely to happen"
1105+ # case reliably under CI conditions. It's not clear why; but as
1106+ # this test is checking the behavior of getallocatedblock()
1107+ # under garbage collection, we can skip this pre-condition check
1108+ # for now. See GH-130384.
1109+ if not support .Py_GIL_DISABLED and not support .is_apple_mobile :
11041110 self .assertLess (a , sys .gettotalrefcount ())
11051111 except AttributeError :
11061112 # gettotalrefcount() not available
You can’t perform that action at this time.
0 commit comments