summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-22 17:14:27 (GMT)
committerGitHub <noreply@github.com>2022-06-22 17:14:27 (GMT)
commit47e35625ff2c4e6511a12e7178c3e4fbc965b634 (patch)
treee9a6b4d687233135f993260b12011613b9189058 /Lib/test
parent8661c5053fbe3e246289d77e49a813470b3a16f7 (diff)
downloadcpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.zip
cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.gz
cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.bz2
gh-84623: Remove unused imports (#94132)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py1
-rw-r--r--Lib/test/test_ctypes/test_parameters.py1
-rw-r--r--Lib/test/test_sqlite3/test_transactions.py2
-rw-r--r--Lib/test/test_unittest/test_program.py2
-rw-r--r--Lib/test/test_unittest/test_result.py2
5 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 23d2e8a..9918165 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -9,7 +9,6 @@ import signal
import socket
import stat
import sys
-import tempfile
import threading
import unittest
from unittest import mock
diff --git a/Lib/test/test_ctypes/test_parameters.py b/Lib/test/test_ctypes/test_parameters.py
index 2f755a6..84839d9 100644
--- a/Lib/test/test_ctypes/test_parameters.py
+++ b/Lib/test/test_ctypes/test_parameters.py
@@ -5,7 +5,6 @@ import test.support
class SimpleTypesTestCase(unittest.TestCase):
def setUp(self):
- import ctypes
try:
from _ctypes import set_conversion_mode
except ImportError:
diff --git a/Lib/test/test_sqlite3/test_transactions.py b/Lib/test/test_sqlite3/test_transactions.py
index a67d727..9c3d19e 100644
--- a/Lib/test/test_sqlite3/test_transactions.py
+++ b/Lib/test/test_sqlite3/test_transactions.py
@@ -20,7 +20,7 @@
# misrepresented as being the original software.
# 3. This notice may not be removed or altered from any source distribution.
-import os, unittest
+import unittest
import sqlite3 as sqlite
from test.support import LOOPBACK_TIMEOUT
diff --git a/Lib/test/test_unittest/test_program.py b/Lib/test/test_unittest/test_program.py
index 169fc4e..3fecbcd 100644
--- a/Lib/test/test_unittest/test_program.py
+++ b/Lib/test/test_unittest/test_program.py
@@ -1,5 +1,3 @@
-import io
-
import os
import sys
import subprocess
diff --git a/Lib/test/test_unittest/test_result.py b/Lib/test/test_unittest/test_result.py
index b0cc3d8..eeb1599 100644
--- a/Lib/test/test_unittest/test_result.py
+++ b/Lib/test/test_unittest/test_result.py
@@ -2,7 +2,7 @@ import io
import sys
import textwrap
-from test.support import warnings_helper, captured_stdout, captured_stderr
+from test.support import warnings_helper, captured_stdout
import traceback
import unittest