Skip to content

Commit f4d301d

Browse files
authored
gh-120417: Remove unused imports in tests (part 4) (#120632)
1 parent 5c4235c commit f4d301d

File tree

7 files changed

+1
-10
lines changed

7 files changed

+1
-10
lines changed

Lib/test/test_plistlib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import subprocess
1414
import binascii
1515
import collections
16-
import time
1716
import zoneinfo
1817
from test import support
1918
from test.support import os_helper

Lib/test/test_pprint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pprint
99
import random
1010
import re
11-
import test.support
1211
import types
1312
import unittest
1413

Lib/test/test_pyrepl/test_reader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
import functools
33
import rlcompleter
44
from unittest import TestCase
5-
from unittest.mock import MagicMock, patch
5+
from unittest.mock import MagicMock
66

77
from .support import handle_all_events, handle_events_narrow_console, code_to_events, prepare_reader
8-
from test.support import import_helper
98
from _pyrepl.console import Event
109
from _pyrepl.reader import Reader
1110

Lib/test/test_queue.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# to ensure the Queue locks remain stable.
33
import itertools
44
import random
5-
import sys
65
import threading
76
import time
87
import unittest

Lib/test/test_re.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import re
77
import string
88
import sys
9-
import time
109
import unittest
1110
import warnings
1211
from re import Scanner

Lib/test/test_type_aliases.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pickle
2-
import textwrap
32
import types
43
import unittest
54
from test.support import check_syntax_error, run_code

Lib/test/test_winapi.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import os
44
import pathlib
5-
import random
65
import re
7-
import threading
8-
import time
96
import unittest
107
from test.support import import_helper, os_helper
118

0 commit comments

Comments
 (0)