[Python-checkins] cpython: Remove more unused imports in tests.
serhiy.storchaka
python-checkins at python.org
Sun Apr 24 17:12:54 EDT 2016
https://hg.python.org/cpython/rev/54ff12c2e0e9
changeset: 101130:54ff12c2e0e9
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Apr 25 00:05:30 2016 +0300
summary:
Remove more unused imports in tests.
files:
Lib/ctypes/test/test_bitfields.py | 1 -
Lib/ctypes/test/test_pep3118.py | 2 +-
Lib/lib2to3/tests/support.py | 2 --
Lib/test/eintrdata/eintr_tester.py | 1 -
Lib/test/test_eintr.py | 1 -
Lib/test/test_imp.py | 1 -
Lib/test/test_json/test_fail.py | 1 -
Lib/test/test_subprocess.py | 1 -
Lib/test/test_symbol.py | 1 -
Lib/test/test_threading.py | 1 -
Lib/test/test_tools/__init__.py | 1 -
11 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/Lib/ctypes/test/test_bitfields.py b/Lib/ctypes/test/test_bitfields.py
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list