mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
gh-130384: Skip a test_getallocatedblocks test pre-condition on iOS. (GH-130385)
This commit is contained in:
parent
7ed3dc6392
commit
8a76eb8469
1 changed files with 7 additions and 1 deletions
|
@ -1100,7 +1100,13 @@ class SysModuleTest(unittest.TestCase):
|
||||||
# code objects is a large fraction of the total number of
|
# code objects is a large fraction of the total number of
|
||||||
# references, this can cause the total number of allocated
|
# references, this can cause the total number of allocated
|
||||||
# blocks to exceed the total number of references.
|
# blocks to exceed the total number of references.
|
||||||
if not support.Py_GIL_DISABLED:
|
#
|
||||||
|
# For some reason, iOS seems to trigger the "unlikely to happen"
|
||||||
|
# case reliably under CI conditions. It's not clear why; but as
|
||||||
|
# this test is checking the behavior of getallocatedblock()
|
||||||
|
# under garbage collection, we can skip this pre-condition check
|
||||||
|
# for now. See GH-130384.
|
||||||
|
if not support.Py_GIL_DISABLED and not support.is_apple_mobile:
|
||||||
self.assertLess(a, sys.gettotalrefcount())
|
self.assertLess(a, sys.gettotalrefcount())
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# gettotalrefcount() not available
|
# gettotalrefcount() not available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue