Issue #23277: Remove more unused sys and os imports.

This commit is contained in:
Serhiy Storchaka 2016-04-24 13:25:01 +03:00
parent 18a8affc8e
commit c7f44aa99a
13 changed files with 0 additions and 15 deletions

View File

@ -1,5 +1,4 @@
"""Tests for distutils.command.clean."""
import sys
import os
import unittest
import getpass

View File

@ -1,5 +1,4 @@
"""Tests for distutils.pypirc.pypirc."""
import sys
import os
import unittest
import tempfile

View File

@ -1,5 +1,4 @@
"""Tests for distutils.command.install_data."""
import sys
import os
import unittest
import getpass

View File

@ -1,5 +1,4 @@
"""Tests for distutils.command.install_headers."""
import sys
import os
import unittest
import getpass

View File

@ -1,5 +1,4 @@
"""Tests for distutils.unixccompiler."""
import os
import sys
import unittest
from test.support import EnvironmentVarGuard, run_unittest

View File

@ -15,7 +15,6 @@ from test.support import verbose
# Python imports
import os
import sys
import unittest
import warnings
import subprocess

View File

@ -11,7 +11,6 @@ especially when debugging a test.
from __future__ import with_statement
import sys
import warnings
# Testing imports

View File

@ -3,9 +3,6 @@
# Testing imports
from . import support
# Python imports
import os.path
# Local imports
from lib2to3.pytree import Node, Leaf
from lib2to3 import fixer_util

View File

@ -318,7 +318,6 @@ class CommonTest(unittest.TestCase):
self.assertEqual(id(s), id(s*1))
def test_bigrepeat(self):
import sys
if sys.maxsize <= 2147483647:
x = self.type2test([0])
x *= 2**16

View File

@ -5,7 +5,6 @@ machinery = util.import_importlib('importlib.machinery')
import codecs
import importlib.util
import re
import sys
import types
# Because sys.path gets essentially blanked, need to have unicodedata already
# imported for the parser to use.

View File

@ -4,7 +4,6 @@ from itertools import *
import weakref
from decimal import Decimal
from fractions import Fraction
import sys
import operator
import random
import copy

View File

@ -6,7 +6,6 @@ import operator
import copy
import pickle
from random import randrange, shuffle
import sys
import warnings
import collections
import collections.abc

View File

@ -9,7 +9,6 @@ import xmlrpc.server
import http.client
import http, http.server
import socket
import os
import re
import io
import contextlib