Commit c7f44aa9 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 18a8affc
"""Tests for distutils.command.clean."""
import sys
import os
import unittest
import getpass
......
"""Tests for distutils.pypirc.pypirc."""
import sys
import os
import unittest
import tempfile
......
"""Tests for distutils.command.install_data."""
import sys
import os
import unittest
import getpass
......
"""Tests for distutils.command.install_headers."""
import sys
import os
import unittest
import getpass
......
"""Tests for distutils.unixccompiler."""
import os
import sys
import unittest
from test.support import EnvironmentVarGuard, run_unittest
......
......@@ -15,7 +15,6 @@ from test.support import verbose
# Python imports
import os
import sys
import unittest
import warnings
import subprocess
......
......@@ -11,7 +11,6 @@ especially when debugging a test.
from __future__ import with_statement
import sys
import warnings
# Testing imports
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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
......
......@@ -6,7 +6,6 @@ import operator
import copy
import pickle
from random import randrange, shuffle
import sys
import warnings
import collections
import collections.abc
......
......@@ -9,7 +9,6 @@ import xmlrpc.server
import http.client
import http, http.server
import socket
import os
import re
import io
import contextlib
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment