mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -1390,7 +1390,7 @@ class SizeofTest(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.P = struct.calcsize('P')
|
||||
self.longdigit = sys.int_info.sizeof_digit
|
||||
import _testinternalcapi
|
||||
_testinternalcapi = import_helper.import_module("_testinternalcapi")
|
||||
self.gc_headsize = _testinternalcapi.SIZEOF_PYGC_HEAD
|
||||
self.managed_pre_header_size = _testinternalcapi.SIZEOF_MANAGED_PRE_HEADER
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue