summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-01 16:28:25 (GMT)
committerGitHub <noreply@github.com>2019-07-01 16:28:25 (GMT)
commit8f4ef3b019ce380022018587571b0f970e668de3 (patch)
treed3699d2cae322c515e7a81e516527324fadc2d4d /Lib/test/test_asyncio
parentf9b7457bd7f438263e0d2dd1f70589ad56a2585e (diff)
downloadcpython-8f4ef3b019ce380022018587571b0f970e668de3.zip
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.gz
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.bz2
Remove unused imports in tests (GH-14518)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py2
-rw-r--r--Lib/test/test_asyncio/test_pep492.py1
-rw-r--r--Lib/test/test_asyncio/test_proactor_events.py2
-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_asyncio/test_unix_events.py2
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py3
7 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 045654e..e5ad72f 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -26,8 +26,6 @@ if sys.platform != 'win32':
import tty
import asyncio
-from asyncio import base_events
-from asyncio import constants
from asyncio import coroutines
from asyncio import events
from asyncio import proactor_events
diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
index 11c0ce4..a5cf37d 100644
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -4,7 +4,6 @@ import sys
import types
import unittest
-from test import support
from unittest import mock
import asyncio
diff --git a/Lib/test/test_asyncio/test_proactor_events.py b/Lib/test/test_asyncio/test_proactor_events.py
index 2e9995d..b2fd606 100644
--- a/Lib/test/test_asyncio/test_proactor_events.py
+++ b/Lib/test/test_asyncio/test_proactor_events.py
@@ -4,11 +4,9 @@ import io
import socket
import unittest
import sys
-from collections import deque
from unittest import mock
import asyncio
-from asyncio import events
from asyncio.proactor_events import BaseProactorEventLoop
from asyncio.proactor_events import _ProactorSocketTransport
from asyncio.proactor_events import _ProactorWritePipeTransport
diff --git a/Lib/test/test_asyncio/test_server.py b/Lib/test/test_asyncio/test_server.py
index 0e38e6c..d47ccc0 100644
--- a/Lib/test/test_asyncio/test_server.py
+++ b/Lib/test/test_asyncio/test_server.py
@@ -1,5 +1,4 @@
import asyncio
-import socket
import time
import threading
import unittest
diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py
index 1c22850..9457bc9 100644
--- a/Lib/test/test_asyncio/test_sslproto.py
+++ b/Lib/test/test_asyncio/test_sslproto.py
@@ -15,7 +15,6 @@ import asyncio
from asyncio import log
from asyncio import protocols
from asyncio import sslproto
-from asyncio import tasks
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_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 462a8b3..1daa870 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -22,8 +22,6 @@ if sys.platform == 'win32':
import asyncio
from asyncio import log
-from asyncio import base_events
-from asyncio import events
from asyncio import unix_events
from test.test_asyncio import utils as test_utils
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index 1e1c01d..6454326 100644
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/test_windows_events.py
@@ -2,7 +2,6 @@ import os
import signal
import socket
import sys
-import subprocess
import time
import threading
import unittest
@@ -12,14 +11,12 @@ if sys.platform != 'win32':
raise unittest.SkipTest('Windows only')
import _overlapped
-import _testcapi
import _winapi
import asyncio
from asyncio import windows_events
from asyncio.streams import _StreamProtocol
from test.test_asyncio import utils as test_utils
-from test.support.script_helper import spawn_python
def tearDownModule():