Commit 905adfca authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #23277: Remove unused imports in tests.

parent 95f6afb7
......@@ -3,16 +3,12 @@
import unittest
import sys
import os
import tempfile
import shutil
from test.support import run_unittest
from distutils.core import Distribution
from distutils.command.bdist_rpm import bdist_rpm
from distutils.tests import support
from distutils.spawn import find_executable
from distutils import spawn
from distutils.errors import DistutilsExecError
SETUP_PY = """\
from distutils.core import setup
......
......@@ -166,7 +166,6 @@ class BuildExtTestCase(TempdirManager,
cmd = self.build_ext(dist)
cmd.finalize_options()
from distutils import sysconfig
py_include = sysconfig.get_python_inc()
self.assertIn(py_include, cmd.include_dirs)
......
"""Tests for distutils.command.clean."""
import os
import unittest
import getpass
from distutils.command.clean import clean
from distutils.tests import support
......
"""Tests for distutils.pypirc.pypirc."""
import os
import unittest
import tempfile
from distutils.core import PyPIRCCommand
from distutils.core import Distribution
......
......@@ -3,11 +3,10 @@ import unittest
import sys
import os
from io import BytesIO
import subprocess
from test.support import run_unittest
from distutils import cygwinccompiler
from distutils.cygwinccompiler import (CygwinCCompiler, check_config_h,
from distutils.cygwinccompiler import (check_config_h,
CONFIG_H_OK, CONFIG_H_NOTOK,
CONFIG_H_UNCERTAIN, get_versions,
get_msvcr)
......
"""Tests for distutils.dep_util."""
import unittest
import os
import time
from distutils.dep_util import newer, newer_pairwise, newer_group
from distutils.errors import DistutilsFileError
......
"""Tests for distutils.file_util."""
import unittest
import os
import shutil
import errno
from unittest.mock import patch
......
"""Tests for distutils.command.install_data."""
import os
import unittest
import getpass
from distutils.command.install_data import install_data
from distutils.tests import support
......
"""Tests for distutils.command.install_headers."""
import os
import unittest
import getpass
from distutils.command.install_headers import install_headers
from distutils.tests import support
......
"""Tests for distutils.spawn."""
import unittest
import os
import time
from test.support import captured_stdout, run_unittest
from test.support import run_unittest
from distutils.spawn import _nt_quote_args
from distutils.spawn import spawn, find_executable
from distutils.spawn import spawn
from distutils.errors import DistutilsExecError
from distutils.tests import support
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment