diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-24 18:41:02 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-24 18:41:02 (GMT) |
commit | e437a10d15ddfd21d406e591acccf12ff443194e (patch) | |
tree | f6227687646fda64f9eaf485ae2d9c3f55709232 /Lib/lib2to3/tests | |
parent | 597d15afe45ea3a8613d336e68a0a98b8846e603 (diff) | |
download | cpython-e437a10d15ddfd21d406e591acccf12ff443194e.zip cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.gz cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.bz2 |
Issue #23277: Remove unused imports in tests.
Diffstat (limited to 'Lib/lib2to3/tests')
-rw-r--r-- | Lib/lib2to3/tests/test_all_fixers.py | 1 | ||||
-rw-r--r-- | Lib/lib2to3/tests/test_fixers.py | 3 | ||||
-rw-r--r-- | Lib/lib2to3/tests/test_parser.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/tests/test_pytree.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/tests/test_refactor.py | 4 |
5 files changed, 2 insertions, 10 deletions
diff --git a/Lib/lib2to3/tests/test_all_fixers.py b/Lib/lib2to3/tests/test_all_fixers.py index 15079fe..c0507cf 100644 --- a/Lib/lib2to3/tests/test_all_fixers.py +++ b/Lib/lib2to3/tests/test_all_fixers.py @@ -10,7 +10,6 @@ import unittest import test.support # Local imports -from lib2to3 import refactor from . import support diff --git a/Lib/lib2to3/tests/test_fixers.py b/Lib/lib2to3/tests/test_fixers.py index def9b0e..b97b73a 100644 --- a/Lib/lib2to3/tests/test_fixers.py +++ b/Lib/lib2to3/tests/test_fixers.py @@ -2,12 +2,11 @@ # Python imports import os -import unittest from itertools import chain from operator import itemgetter # Local imports -from lib2to3 import pygram, pytree, refactor, fixer_util +from lib2to3 import pygram, fixer_util from lib2to3.tests import support diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py index 46c8c54..36eb176 100644 --- a/Lib/lib2to3/tests/test_parser.py +++ b/Lib/lib2to3/tests/test_parser.py @@ -10,7 +10,7 @@ from __future__ import with_statement # Testing imports from . import support -from .support import driver, test_dir +from .support import driver from test.support import verbose # Python imports diff --git a/Lib/lib2to3/tests/test_pytree.py b/Lib/lib2to3/tests/test_pytree.py index c93aa65..a611d17 100644 --- a/Lib/lib2to3/tests/test_pytree.py +++ b/Lib/lib2to3/tests/test_pytree.py @@ -11,8 +11,6 @@ especially when debugging a test. from __future__ import with_statement -import warnings - # Testing imports from . import support diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py index f30c1e8..ab5ce727 100644 --- a/Lib/lib2to3/tests/test_refactor.py +++ b/Lib/lib2to3/tests/test_refactor.py @@ -7,18 +7,14 @@ from __future__ import with_statement import sys import os import codecs -import operator import io import tempfile import shutil import unittest -import warnings from lib2to3 import refactor, pygram, fixer_base from lib2to3.pgen2 import token -from . import support - TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data") FIXER_DIR = os.path.join(TEST_DATA_DIR, "fixers") |