diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-30 00:21:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 00:21:30 (GMT) |
commit | b1e11c31c523dc082985e9de779ceeb47224e536 (patch) | |
tree | a4f356df1e0228266e885c6ecb5e5dce52baef80 /Lib/distutils | |
parent | 57572b103ebd8732ac21922f0051a7f140d0e405 (diff) | |
download | cpython-b1e11c31c523dc082985e9de779ceeb47224e536.zip cpython-b1e11c31c523dc082985e9de779ceeb47224e536.tar.gz cpython-b1e11c31c523dc082985e9de779ceeb47224e536.tar.bz2 |
bpo-40443: Remove unused imports in tests (GH-19804)
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_build_clib.py | 1 | ||||
-rw-r--r-- | Lib/distutils/tests/test_config_cmd.py | 1 | ||||
-rw-r--r-- | Lib/distutils/tests/test_dist.py | 2 | ||||
-rw-r--r-- | Lib/distutils/tests/test_spawn.py | 3 |
4 files changed, 2 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_build_clib.py b/Lib/distutils/tests/test_build_clib.py index 85d0990..abd8313 100644 --- a/Lib/distutils/tests/test_build_clib.py +++ b/Lib/distutils/tests/test_build_clib.py @@ -8,7 +8,6 @@ from test.support import run_unittest, missing_compiler_executable from distutils.command.build_clib import build_clib from distutils.errors import DistutilsSetupError from distutils.tests import support -from distutils.spawn import find_executable class BuildCLibTestCase(support.TempdirManager, support.LoggingSilencer, diff --git a/Lib/distutils/tests/test_config_cmd.py b/Lib/distutils/tests/test_config_cmd.py index 8bd2c94..9aeab07 100644 --- a/Lib/distutils/tests/test_config_cmd.py +++ b/Lib/distutils/tests/test_config_cmd.py @@ -39,7 +39,6 @@ class ConfigTestCase(support.LoggingSilencer, @unittest.skipIf(sys.platform == 'win32', "can't test on Windows") def test_search_cpp(self): - import shutil cmd = missing_compiler_executable(['preprocessor']) if cmd is not None: self.skipTest('The %r command is not found' % cmd) diff --git a/Lib/distutils/tests/test_dist.py b/Lib/distutils/tests/test_dist.py index cc34725..60956da 100644 --- a/Lib/distutils/tests/test_dist.py +++ b/Lib/distutils/tests/test_dist.py @@ -8,7 +8,7 @@ import textwrap from unittest import mock -from distutils.dist import Distribution, fix_help_options, DistributionMetadata +from distutils.dist import Distribution, fix_help_options from distutils.cmd import Command from test.support import ( diff --git a/Lib/distutils/tests/test_spawn.py b/Lib/distutils/tests/test_spawn.py index 73b0f5c..cf1faad 100644 --- a/Lib/distutils/tests/test_spawn.py +++ b/Lib/distutils/tests/test_spawn.py @@ -2,8 +2,7 @@ import os import stat import sys -import unittest -from unittest import mock +import unittest.mock from test.support import run_unittest, unix_shell from test import support as test_support |