# (before the site module is run).
import _testinternalcapi
-import os
import sys
import unittest
from test import support
raise ImportError('support must be imported from the test package')
import contextlib
-import dataclasses
import functools
import _opcode
import os
from test.support import warnings_helper
import os
import sys
-import types
if support.check_sanitizer(address=True, memory=True):
import unittest
from test.support import (cpython_only, is_wasi, requires_limited_api, Py_DEBUG,
- set_recursion_limit, skip_on_s390x, import_helper)
+ set_recursion_limit, skip_on_s390x)
try:
import _testcapi
except ImportError:
import itertools
import gc
import contextlib
-import sys
import types
-import gc
-import weakref
import unittest
from test.support import import_helper
from collections import UserList
import time
import types
import unittest
-import warnings
import weakref
import operator
from test import support
import unittest
from test.support import import_helper
-from test.support import warnings_helper
# Skip this test if the _testcapi module isn't available.
import_helper.import_module('_testcapi')
import threading
import time
-import unittest
import weakref
from concurrent import futures
from test import support
import re
from dataclasses import dataclass
from functools import cached_property
-import sys
import ctypes
-from ctypes import Structure, Union, _SimpleCData
+from ctypes import Structure, Union
from ctypes import sizeof, alignment, pointer, string_at
_ctypes_test = import_helper.import_module("_ctypes_test")
import struct
import sys
import unittest
-from ctypes import (CDLL, Array, Structure, Union, POINTER, sizeof, byref, alignment,
+from ctypes import (CDLL, Structure, Union, POINTER, sizeof, byref, alignment,
c_void_p, c_char, c_wchar, c_byte, c_ubyte,
c_uint8, c_uint16, c_uint32,
c_short, c_ushort, c_int, c_uint,