Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import multiprocessing.managers
import multiprocessing.pool
import multiprocessing.queues
from multiprocessing.connection import wait, AuthenticationError
from multiprocessing.connection import wait

from multiprocessing import util

Expand Down
6 changes: 0 additions & 6 deletions Lib/test/test_asyncio/test_eager_task_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@

import asyncio
import contextvars
import gc
import time
import unittest

from types import GenericAlias
from unittest import mock
from asyncio import base_events
from asyncio import tasks
from test.test_asyncio import utils as test_utils
from test.test_asyncio.test_tasks import get_innermost_context
from test import support

MOCK_ANY = mock.ANY

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import sys
import datetime
import os
import warnings

# From https://en.wikipedia.org/wiki/Leap_year_starting_on_Saturday
result_0_02_text = """\
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_capi/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import os
import pickle
import random
import subprocess
import sys
import textwrap
import threading
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed to the PSF under a contributor agreement.

from test import support, test_tools
from test.support import import_helper, os_helper
from test.support import os_helper
from unittest import TestCase
import collections
import inspect
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_compiler_assemble.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

import ast
import types

from test.support.bytecode_helper import AssemblerTestCase
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_configparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pathlib
import textwrap
import unittest
import warnings

from test import support
from test.support import os_helper
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_cppext.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import subprocess
import sysconfig
from test import support
from test.support import os_helper


MS_WINDOWS = (sys.platform == 'win32')
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/builtin/test_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import sys
import unittest
import warnings


@unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module')
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_importlib/extension/test_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from warnings import catch_warnings
from test.test_importlib import abc, util

machinery = util.import_importlib('importlib.machinery')
Expand All @@ -10,7 +9,6 @@
import warnings
import importlib.util
import importlib
from test.support.script_helper import assert_python_failure


class LoaderTests:
Expand Down
3 changes: 0 additions & 3 deletions Lib/test/test_importlib/frozen/test_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

machinery = util.import_importlib('importlib.machinery')

import _imp
import marshal
import os.path
import unittest
import warnings

from test.support import import_helper, REPO_ROOT, STDLIB_DIR

Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_importlib/frozen/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
machinery = util.import_importlib('importlib.machinery')

from test.support import captured_stdout, import_helper, STDLIB_DIR
import _imp
import contextlib
import marshal
import os.path
import types
import unittest
Expand Down
3 changes: 0 additions & 3 deletions Lib/test/test_importlib/import_/test___loader__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from importlib import machinery
import sys
import types
import unittest
import warnings

from test.test_importlib import util

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/source/test_case_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import os
from test.support import os_helper
import unittest
import warnings


@util.case_insensitive_tests
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/source/test_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import tempfile
from test.support.import_helper import make_legacy_pyc
import unittest
import warnings


class FinderTests(abc.FinderTests):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from test.support import os_helper
import types
import unittest
import warnings


class ImportModuleTests:
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import warnings
import importlib.metadata
import contextlib
import itertools

try:
import pyfakefs.fake_filesystem_unittest as ffs
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_namespace_pkgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys
import tempfile
import unittest
import warnings

from test.test_importlib import util

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_threaded_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import shutil
import threading
import unittest
from unittest import mock
from test.support import verbose
from test.support.import_helper import forget, mock_register_at_fork
from test.support.os_helper import (TESTFN, unlink, rmtree)
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
import sys
import unittest
import warnings
from test.support import import_helper
from contextlib import contextmanager
from test.test_importlib.util import temp_module
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import contextlib
import collections.abc
import io
import os
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
unregister_unpack_format, get_unpack_formats,
SameFileError, _GiveupOnFastCopy)
import tarfile
import warnings
import zipfile
try:
import posix
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_unittest/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import traceback
import unittest
from unittest import mock
from unittest.util import strclass
from test.test_unittest.support import BufferedWriter

Expand Down