import concurrent.futures
import unittest
import inspect
-from threading import Thread, Barrier
+from threading import Barrier
from unittest import TestCase
from test.support import threading_helper, Py_GIL_DISABLED
import unittest
-import sys
from threading import Thread, Barrier
from itertools import batched
from test.support import threading_helper
import unittest
from threading import Thread
-from test.support import threading_helper
from operator import methodcaller
import unittest
import warnings
-from test import support
from test.support import is_wasi, Py_DEBUG
from test.support.os_helper import (TESTFN, skip_unless_symlink,
can_symlink, create_empty_file, change_cwd)
-from importlib import _bootstrap_external
from test.support import os_helper
import unittest
import sys
-import os
import pathlib
import py_compile
-import shutil
import textwrap
import unittest
import warnings
from importlib import _bootstrap_external
import os
import pathlib
-import re
import string
import sys
from test import support
# valid. Furthermore LC_CTYPE=UTF is used by the UTF-8 locale coercing
# during interpreter startup (on macOS).
import _locale
- import os
self.assertEqual(locale._parse_localename('UTF-8'), (None, 'UTF-8'))
from test.support import import_helper
from test.support import is_emscripten, is_wasi
from test.support import infinite_recursion
-from test.support import swap_attr
from test.support import os_helper
from test.support.os_helper import TESTFN, FakePath
from test.test_pathlib import test_pathlib_abc
-import collections
import io
import os
import errno
import unittest
-from pathlib._os import magic_open
-from pathlib.types import _PathParser, PathInfo, _JoinablePath, _ReadablePath, _WritablePath
+from pathlib.types import _JoinablePath, _ReadablePath, _WritablePath
import posixpath
from test.support.os_helper import TESTFN
from pathlib import Path
-from test.support.import_helper import unload, CleanImport
-from test.support.warnings_helper import check_warnings, ignore_warnings
+from test.support.import_helper import unload
+from test.support.warnings_helper import check_warnings
import unittest
import sys
import importlib
-import os
from code import InteractiveConsole
from functools import partial
from typing import Iterable
import tempfile
import unittest
-import sys
from unittest.mock import patch
from test import support
import os.path
import errno
import functools
-import pathlib
import subprocess
import random
import string
from test import support
from test.support import os_helper
from test.support.os_helper import TESTFN, FakePath
-from test.support import warnings_helper
TESTFN2 = TESTFN + "2"
TESTFN_SRC = TESTFN + "_SRC"
from test import support
from test.support import os_helper
from test.support import script_helper
-from test.support import warnings_helper
# Check for our compression modules.
try:
"""Tests for thread-local bytecode."""
-import dis
import textwrap
import unittest
# Python test set -- part 6, built-in types
from test.support import (
- run_with_locale, is_apple_mobile, cpython_only, no_rerun,
- iter_builtin_types, iter_slot_wrappers,
+ run_with_locale, cpython_only, no_rerun,
MISSING_C_DOCSTRINGS,
)
import collections.abc
# Check every path through every method of UserDict
-from test import mapping_tests, support
+from test import mapping_tests
import unittest
import collections
from collections import UserList
from test import list_tests
import unittest
-from test import support
class UserListTest(list_tests.CommonTest):
# Test the internal _wmi module on Windows
# This is used by the platform module, and potentially others
-import time
import unittest
from test import support
from test.support import import_helper
import pickle
import stat
import sys
-import time
import unittest
import zipfile
import zipfile._path
from test.support import (
findfile, requires_zlib, requires_bz2, requires_lzma,
captured_stdout, captured_stderr, requires_subprocess,
- is_emscripten
)
from test.support.os_helper import (
TESTFN, unlink, rmtree, temp_dir, temp_cwd, fd_count, FakePath