Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35202: Remove unused imports #10561

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-35202 : Remove unused imports
  • Loading branch information
srinivasreddy committed Nov 16, 2018
commit dad57e9331ee27b68256733af13e403016d400c6
2 changes: 0 additions & 2 deletions Lib/test/test_aifc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import sys
import struct
import aifc
import warnings


class AifcTest(audiotests.AudioWriteTests,
audiotests.AudioTestsWithSourceFile):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_asyncio/test_selector_events.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Tests for selector_events.py"""

import errno
import selectors
import socket
import unittest
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import copy
import inspect
import pickle
import re
import sys
import types
import unittest
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_frozen.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import sys
import unittest
from test.support import captured_stdout
from importlib import util


class TestFrozen(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_future.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Test various flavors of legal and illegal future statements

from functools import partial
import unittest
from test import support
from textwrap import dedent
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# The code for testing gdb was adapted from similar work in Unladen Swallow's
# Lib/test/test_jit_gdb.py

import locale
import os
import platform
import re
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_importlib/test_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import sys
import threading
import unittest
import weakref

from test import support
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_minidom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import copy
import pickle
import io
import contextlib
from test.support import findfile
import unittest

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_netrc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import netrc, os, unittest, sys, tempfile, textwrap
from unittest import mock
from test import support


Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_platform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from unittest import mock
import os
import platform
import subprocess
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_resource.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import contextlib
import sys
import os
import unittest
from test import support
import time
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_sax.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from xml.sax.xmlreader import InputSource, AttributesImpl, AttributesNSImpl
from io import BytesIO, StringIO
import codecs
import gc
import os.path
import shutil
from urllib.error import URLError
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import asyncore
import weakref
import platform
import functools
import sysconfig
try:
import ctypes
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import time
import threading
import unittest
import warnings
try:
import _testcapi
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_encoded_file(self):
# Test that tracebacks are correctly printed for encoded source files:
# - correct line number (Issue2384)
# - respect file encoding (Issue3975)
import tempfile, sys, subprocess, os
import sys, subprocess

# The spawned subprocess has its stdout redirected to a PIPE, and its
# encoding may be different from the current interpreter, on Windows
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_urlparse.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest
import urllib.parse
import warnings

RFC1808_BASE = "http://a/b/c/d;p?q#f"
RFC2396_BASE = "http://a/b/c/d;p?q"
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_utf8_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import locale
import os
import sys
import textwrap
import unittest
Expand Down