import itertools
import math
import types
-import warnings
import weakref
from types import GenericAlias
# tests common to dict and UserDict
import unittest
import collections
-import sys
from test.support import Py_C_RECURSION_LIMIT
import _xxinterpchannels as _channels
# aliases:
-from _xxsubinterpreters import is_shareable, RunFailedError
+from _xxsubinterpreters import is_shareable
from _xxinterpchannels import (
ChannelError, ChannelNotFoundError, ChannelEmptyError,
)
from unittest import mock
from asyncio import tasks
from test.test_asyncio import utils as test_utils
-import test.support
from test.support.script_helper import assert_python_ok
MOCK_ANY = mock.ANY
import unittest
-import sys
from collections import OrderedDict
-from test import support
-from test.support import import_helper
import _testcapi
import unittest
-import sys
from collections import OrderedDict, UserDict
from types import MappingProxyType
-from test import support
-from test.support import import_helper
import _testcapi
# these are all functions _testcapi exports whose name begins with 'test_'.
import _thread
-from collections import OrderedDict, deque
+from collections import deque
import contextlib
import importlib.machinery
import importlib.util
import gc
import pickle
from test import support
-from test.support import warnings_helper, import_helper, check_disallow_instantiation
+from test.support import import_helper, check_disallow_instantiation
from itertools import permutations
from textwrap import dedent
from collections import OrderedDict
darwin_malloc_err_warning, is_emscripten)
from test.support.import_helper import import_fresh_module
from test.support import threading_helper
-from test.support import warnings_helper
import random
import inspect
import threading
import collections.abc
import copy
import pickle
-import sys
import unittest
from test.support import Py_C_RECURSION_LIMIT
# Lib/test/test_jit_gdb.py
import os
-import platform
import re
import subprocess
import sys
from test.test_importlib import util
import sys
import unittest
-from test import support
from test.support import import_helper
import os.path
-import unittest
from test import support
from test.support import load_package_tests
# handler, are obscure and unhelpful.
import os
-import platform
import sys
import sysconfig
import unittest
from xml.parsers import expat
from xml.parsers.expat import errors
-from test.support import sortdict, is_emscripten, is_wasi
+from test.support import sortdict
class SetAttributeTest(unittest.TestCase):
# Author: Paul Kippes <kippesp@gmail.com>
import unittest
-import sqlite3 as sqlite
from .util import memory_database
from .util import MemoryDatabaseMixin
from test.support import bigmemtest, gc_collect
from .util import cx_limit, memory_database
-from .util import with_tracebacks, check_tracebacks
+from .util import with_tracebacks
def func_returntext():
import re
import sqlite3
import test.support
-import unittest
# Helper for temporary memory databases
import functools
import tkinter
-import unittest
class AbstractTkTest:
import concurrent.futures
from test.support import threading_helper
-from unittest.mock import patch, ThreadingMock, call
+from unittest.mock import patch, ThreadingMock
threading_helper.requires_working_threading(module=True)
from test.support import import_helper
import binascii
import copy
-import os
import pickle
import random
import sys