summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-24 21:05:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-24 21:05:30 (GMT)
commita6f26c1d3495670c02c2ceb1e38ada0d468579f7 (patch)
tree0fe173ee82748239d48aa022592ae68f90a044de
parentfd2839e1de4e1eac61d982fe3a0d2b4602f3fd3e (diff)
downloadcpython-a6f26c1d3495670c02c2ceb1e38ada0d468579f7.zip
cpython-a6f26c1d3495670c02c2ceb1e38ada0d468579f7.tar.gz
cpython-a6f26c1d3495670c02c2ceb1e38ada0d468579f7.tar.bz2
Remove more unused imports in tests.
-rw-r--r--Lib/ctypes/test/test_bitfields.py1
-rw-r--r--Lib/ctypes/test/test_pep3118.py2
-rw-r--r--Lib/lib2to3/tests/support.py2
-rw-r--r--Lib/test/eintrdata/eintr_tester.py1
-rw-r--r--Lib/test/test_eintr.py1
-rw-r--r--Lib/test/test_imp.py1
-rw-r--r--Lib/test/test_json/test_fail.py1
-rw-r--r--Lib/test/test_subprocess.py1
-rw-r--r--Lib/test/test_symbol.py1
-rw-r--r--Lib/test/test_threading.py1
-rw-r--r--Lib/test/test_tools/__init__.py1
11 files changed, 1 insertions, 12 deletions
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 @@ from ctypes.test import need_symbol
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 @@ sub-second periodicity (contrarily to signal()).
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
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 import verbose, import_module, cpython_only
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 os
import unittest
import importlib
from test import support
-from fnmatch import fnmatch
basepath = os.path.dirname( # <src/install dir>
os.path.dirname( # Lib