diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py index 001f86f2893..b231b05f864 100644 --- a/Lib/test/test_plistlib.py +++ b/Lib/test/test_plistlib.py @@ -13,7 +13,6 @@ import codecs import subprocess import binascii import collections -import time import zoneinfo from test import support from test.support import os_helper diff --git a/Lib/test/test_pprint.py b/Lib/test/test_pprint.py index 4e6fed1ab96..dfbc2a06e73 100644 --- a/Lib/test/test_pprint.py +++ b/Lib/test/test_pprint.py @@ -8,7 +8,6 @@ import itertools import pprint import random import re -import test.support import types import unittest diff --git a/Lib/test/test_pyrepl/test_reader.py b/Lib/test/test_pyrepl/test_reader.py index 78b11323d60..986bc36d9a1 100644 --- a/Lib/test/test_pyrepl/test_reader.py +++ b/Lib/test/test_pyrepl/test_reader.py @@ -2,10 +2,9 @@ import itertools import functools import rlcompleter from unittest import TestCase -from unittest.mock import MagicMock, patch +from unittest.mock import MagicMock from .support import handle_all_events, handle_events_narrow_console, code_to_events, prepare_reader -from test.support import import_helper from _pyrepl.console import Event from _pyrepl.reader import Reader diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py index d5927fbf391..6dced7df006 100644 --- a/Lib/test/test_queue.py +++ b/Lib/test/test_queue.py @@ -2,7 +2,6 @@ # to ensure the Queue locks remain stable. import itertools import random -import sys import threading import time import unittest diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index b8b50e8b3c2..d8c839da3d2 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -6,7 +6,6 @@ import locale import re import string import sys -import time import unittest import warnings from re import Scanner diff --git a/Lib/test/test_type_aliases.py b/Lib/test/test_type_aliases.py index f8b395fdc8b..49d6aa81030 100644 --- a/Lib/test/test_type_aliases.py +++ b/Lib/test/test_type_aliases.py @@ -1,5 +1,4 @@ import pickle -import textwrap import types import unittest from test.support import check_syntax_error, run_code diff --git a/Lib/test/test_winapi.py b/Lib/test/test_winapi.py index 73b8228ddc9..e64208330ad 100644 --- a/Lib/test/test_winapi.py +++ b/Lib/test/test_winapi.py @@ -2,10 +2,7 @@ import os import pathlib -import random import re -import threading -import time import unittest from test.support import import_helper, os_helper