Remove more unused imports in tests.
diff --git a/Lib/ctypes/test/test_bitfields.py b/Lib/ctypes/test/test_bitfields.py
index b39d82c..0eb09fb 100644
--- a/Lib/ctypes/test/test_bitfields.py
+++ b/Lib/ctypes/test/test_bitfields.py
@@ -3,7 +3,6 @@
 import unittest
 import os
 
-import ctypes
 import _ctypes_test
 
 class BITS(Structure):
diff --git a/Lib/ctypes/test/test_pep3118.py b/Lib/ctypes/test/test_pep3118.py
index 32f802c..d68397e 100644
--- a/Lib/ctypes/test/test_pep3118.py
+++ b/Lib/ctypes/test/test_pep3118.py
@@ -1,6 +1,6 @@
 import unittest
 from ctypes import *
-import re, struct, sys
+import re, sys
 
 if sys.byteorder == "little":
     THIS_ENDIAN = "<"
diff --git a/Lib/lib2to3/tests/support.py b/Lib/lib2to3/tests/support.py
index 6f2d214..7153bb6 100644
--- a/Lib/lib2to3/tests/support.py
+++ b/Lib/lib2to3/tests/support.py
@@ -3,10 +3,8 @@
 
 # Python imports
 import unittest
-import sys
 import os
 import os.path
-import re
 from textwrap import dedent
 
 # Local imports
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index 1cb86e5..ffcdb98 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -10,7 +10,6 @@
 
 import contextlib
 import faulthandler
-import io
 import os
 import select
 import signal
diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py
index 1c9b84f..25f86d3 100644
--- a/Lib/test/test_eintr.py
+++ b/Lib/test/test_eintr.py
@@ -1,6 +1,5 @@
 import os
 import signal
-import subprocess
 import unittest
 
 from test import support
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
index efb0384..4ece365 100644
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -6,7 +6,6 @@
 import importlib.util
 import os
 import os.path
-import shutil
 import sys
 from test import support
 import unittest
diff --git a/Lib/test/test_json/test_fail.py b/Lib/test/test_json/test_fail.py
index 95ff5b8..7910521 100644
--- a/Lib/test/test_json/test_fail.py
+++ b/Lib/test/test_json/test_fail.py
@@ -1,5 +1,4 @@
 from test.test_json import PyTest, CTest
-import re
 
 # 2007-10-05
 JSONDOCS = [
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 786b8cf..e7519a2 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1,5 +1,4 @@
 import unittest
-from test.support import script_helper
 from test import support
 import subprocess
 import sys
diff --git a/Lib/test/test_symbol.py b/Lib/test/test_symbol.py
index 2dcb9de..c1306f5 100644
--- a/Lib/test/test_symbol.py
+++ b/Lib/test/test_symbol.py
@@ -1,6 +1,5 @@
 import unittest
 from test import support
-import filecmp
 import os
 import sys
 import subprocess
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 0e70016..d6317c7 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -7,7 +7,6 @@
 from test.support.script_helper import assert_python_ok, assert_python_failure
 
 import random
-import re
 import sys
 _thread = import_module('_thread')
 threading = import_module('threading')
diff --git a/Lib/test/test_tools/__init__.py b/Lib/test/test_tools/__init__.py
index 04c8726..4d0fca3 100644
--- a/Lib/test/test_tools/__init__.py
+++ b/Lib/test/test_tools/__init__.py
@@ -3,7 +3,6 @@
 import unittest
 import importlib
 from test import support
-from fnmatch import fnmatch
 
 basepath = os.path.dirname(                 # <src/install dir>
                 os.path.dirname(                # Lib