summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-30 02:21:30 +0200
committerGitHub <noreply@github.com>2020-04-30 02:21:30 +0200
commitb1e11c31c523dc082985e9de779ceeb47224e536 (patch)
treea4f356df1e0228266e885c6ecb5e5dce52baef80 /Lib/test
parent57572b103ebd8732ac21922f0051a7f140d0e405 (diff)
downloadcpython-git-b1e11c31c523dc082985e9de779ceeb47224e536.tar.gz
bpo-40443: Remove unused imports in tests (GH-19804)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_array.py1
-rw-r--r--Lib/test/test_asyncio/test_base_events.py1
-rw-r--r--Lib/test/test_asyncio/test_server.py1
-rw-r--r--Lib/test/test_asyncio/test_sslproto.py1
-rw-r--r--Lib/test/test_call.py1
-rw-r--r--Lib/test/test_code.py1
-rw-r--r--Lib/test/test_compileall.py1
-rw-r--r--Lib/test/test_flufl.py1
-rw-r--r--Lib/test/test_fractions.py1
-rw-r--r--Lib/test/test_fstring.py2
-rw-r--r--Lib/test/test_hashlib.py1
-rw-r--r--Lib/test/test_ipaddress.py1
-rw-r--r--Lib/test/test_logging.py1
-rw-r--r--Lib/test/test_named_expressions.py1
14 files changed, 0 insertions, 15 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 5f612fba8a..f731b70415 100644
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -10,7 +10,6 @@ import pickle
import operator
import struct
import sys
-import warnings
import array
from array import _array_reconstructor as array_reconstructor
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 4adcbf46cc..533d5cc7f5 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -3,7 +3,6 @@
import concurrent.futures
import errno
import math
-import os
import socket
import sys
import threading
diff --git a/Lib/test/test_asyncio/test_server.py b/Lib/test/test_asyncio/test_server.py
index 006ead2956..2de4dcad17 100644
--- a/Lib/test/test_asyncio/test_server.py
+++ b/Lib/test/test_asyncio/test_server.py
@@ -3,7 +3,6 @@ import time
import threading
import unittest
-from test import support
from test.support import socket_helper
from test.test_asyncio import utils as test_utils
from test.test_asyncio import functional as func_tests
diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py
index c716eacfaf..948820c82f 100644
--- a/Lib/test/test_asyncio/test_sslproto.py
+++ b/Lib/test/test_asyncio/test_sslproto.py
@@ -2,7 +2,6 @@
import logging
import socket
-import sys
from test import support
import unittest
import weakref
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index b3077ad1d1..451a7170c3 100644
--- a/Lib/test/test_call.py
+++ b/Lib/test/test_call.py
@@ -1,4 +1,3 @@
-import datetime
import unittest
from test.support import cpython_only
try:
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 7bb824ea31..ac3dde7456 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -130,7 +130,6 @@ import sys
import threading
import unittest
import weakref
-import opcode
try:
import ctypes
except ImportError:
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
index cb59fd71b3..7267894508 100644
--- a/Lib/test/test_compileall.py
+++ b/Lib/test/test_compileall.py
@@ -11,7 +11,6 @@ import tempfile
import time
import unittest
import io
-import errno
from unittest import mock, skipUnless
try:
diff --git a/Lib/test/test_flufl.py b/Lib/test/test_flufl.py
index b71442804c..22285859a9 100644
--- a/Lib/test/test_flufl.py
+++ b/Lib/test/test_flufl.py
@@ -1,6 +1,5 @@
import __future__
import unittest
-import sys
from test import support
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py
index c748533c79..0845f7921c 100644
--- a/Lib/test/test_fractions.py
+++ b/Lib/test/test_fractions.py
@@ -9,7 +9,6 @@ import fractions
import functools
import sys
import unittest
-import warnings
from copy import copy, deepcopy
from pickle import dumps, loads
F = fractions.Fraction
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
index 4c240f34a3..fe465b7e1d 100644
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -10,9 +10,7 @@
import ast
import types
import decimal
-import sys
import unittest
-from test import support
a_global = 'global variable'
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index 31d8e55676..f9fe7e3792 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -8,7 +8,6 @@
import array
from binascii import unhexlify
-import functools
import hashlib
import importlib
import itertools
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py
index bbb3fc89da..6d5814c977 100644
--- a/Lib/test/test_ipaddress.py
+++ b/Lib/test/test_ipaddress.py
@@ -7,7 +7,6 @@
import unittest
import re
import contextlib
-import functools
import operator
import pickle
import ipaddress
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index e1d0eb8145..4cc45f7107 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -36,7 +36,6 @@ import os
import queue
import random
import re
-import signal
import socket
import struct
import sys
diff --git a/Lib/test/test_named_expressions.py b/Lib/test/test_named_expressions.py
index 3ae557f78d..c813830ce6 100644
--- a/Lib/test/test_named_expressions.py
+++ b/Lib/test/test_named_expressions.py
@@ -1,4 +1,3 @@
-import os
import unittest
GLOBAL_VAR = None