https://github.com/python/cpython/commit/f916b77fea9c6ce88d9be46aab2f3ff715a020f2 commit: f916b77fea9c6ce88d9be46aab2f3ff715a020f2 branch: main author: Victor Stinner <vstin...@python.org> committer: vstinner <vstin...@python.org> date: 2024-06-17T21:04:58+02:00 summary:
gh-120417: Remove unused imports in tests (part 3) (#120631) files: M Lib/test/test_imaplib.py M Lib/test/test_inspect/test_inspect.py M Lib/test/test_int.py M Lib/test/test_interpreters/test_api.py M Lib/test/test_interpreters/test_queues.py M Lib/test/test_interpreters/utils.py M Lib/test/test_mailbox.py M Lib/test/test_monitoring.py M Lib/test/test_peepholer.py M Lib/test/test_perf_profiler.py diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index b5384b59463742..1fd75d0a3f4c7b 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -11,7 +11,7 @@ import re import socket -from test.support import verbose, run_with_tz, run_with_locale, cpython_only, requires_resource +from test.support import verbose, run_with_tz, run_with_locale, cpython_only from test.support import hashlib_helper from test.support import threading_helper import unittest diff --git a/Lib/test/test_inspect/test_inspect.py b/Lib/test/test_inspect/test_inspect.py index ea8735d8f06459..9ebab2f81fa566 100644 --- a/Lib/test/test_inspect/test_inspect.py +++ b/Lib/test/test_inspect/test_inspect.py @@ -40,7 +40,7 @@ from test.support.import_helper import DirsOnSysPath, ready_to_import from test.support.os_helper import TESTFN, temp_cwd from test.support.script_helper import assert_python_ok, assert_python_failure, kill_python -from test.support import has_subprocess_support, SuppressCrashReport +from test.support import has_subprocess_support from test import support from test.test_inspect import inspect_fodder as mod diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py index 2747d9219255ac..8870d7aa5d663d 100644 --- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -1,5 +1,4 @@ import sys -import time import unittest from unittest import mock diff --git a/Lib/test/test_interpreters/test_api.py b/Lib/test/test_interpreters/test_api.py index 719c1c721cad7c..5e3d7a052bae91 100644 --- a/Lib/test/test_interpreters/test_api.py +++ b/Lib/test/test_interpreters/test_api.py @@ -1,7 +1,6 @@ import os import pickle -import sys -from textwrap import dedent, indent +from textwrap import dedent import threading import types import unittest diff --git a/Lib/test/test_interpreters/test_queues.py b/Lib/test/test_interpreters/test_queues.py index a3d44c402e0ea2..9ee7647ed79b4e 100644 --- a/Lib/test/test_interpreters/test_queues.py +++ b/Lib/test/test_interpreters/test_queues.py @@ -3,7 +3,6 @@ import threading from textwrap import dedent import unittest -import time from test.support import import_helper, Py_DEBUG # Raise SkipTest if subinterpreters not supported. diff --git a/Lib/test/test_interpreters/utils.py b/Lib/test/test_interpreters/utils.py index 312e6fff0ceb17..3cab76d0f279e0 100644 --- a/Lib/test/test_interpreters/utils.py +++ b/Lib/test/test_interpreters/utils.py @@ -1,16 +1,13 @@ from collections import namedtuple import contextlib import json -import io import os import os.path -import pickle -import queue #import select import subprocess import sys import tempfile -from textwrap import dedent, indent +from textwrap import dedent import threading import types import unittest diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index a1d72aed9d8939..3ecb5eab26d4b9 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -1,7 +1,6 @@ import os import sys import time -import stat import socket import email import email.message diff --git a/Lib/test/test_monitoring.py b/Lib/test/test_monitoring.py index b7c6abed1016dc..a07be306986b43 100644 --- a/Lib/test/test_monitoring.py +++ b/Lib/test/test_monitoring.py @@ -9,7 +9,6 @@ import textwrap import types import unittest -import asyncio import test.support from test.support import requires_specialization, script_helper diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 6c27ee4db97af3..dd3eaeb39e7fe3 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -1,6 +1,5 @@ import dis from itertools import combinations, product -import opcode import sys import textwrap import unittest diff --git a/Lib/test/test_perf_profiler.py b/Lib/test/test_perf_profiler.py index 7c1bbeed168d2e..ac1911ca24eafe 100644 --- a/Lib/test/test_perf_profiler.py +++ b/Lib/test/test_perf_profiler.py @@ -5,7 +5,6 @@ import sysconfig import os import pathlib -import shutil from test import support from test.support.script_helper import ( make_script, _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com