GeezerVison is showing github.com — gh-120417: Remove unused imports in tests (part 4) (#120632) · python/cpython@f4d301d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_plistlib.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
13 | 13 | import subprocess |
14 | 14 | import binascii |
15 | 15 | import collections |
16 | | -import time |
17 | 16 | import zoneinfo |
18 | 17 | from test import support |
19 | 18 | from test.support import os_helper |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_pprint.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | import pprint |
9 | 9 | import random |
10 | 10 | import re |
11 | | -import test.support |
12 | 11 | import types |
13 | 12 | import unittest |
14 | 13 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_pyrepl/test_reader.py +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | import functools |
3 | 3 | import rlcompleter |
4 | 4 | from unittest import TestCase |
5 | | -from unittest.mock import MagicMock, patch |
| 5 | +from unittest.mock import MagicMock |
6 | 6 |
|
7 | 7 | from .support import handle_all_events, handle_events_narrow_console, code_to_events, prepare_reader |
8 | | -from test.support import import_helper |
9 | 8 | from _pyrepl.console import Event |
10 | 9 | from _pyrepl.reader import Reader |
11 | 10 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_queue.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | # to ensure the Queue locks remain stable. |
3 | 3 | import itertools |
4 | 4 | import random |
5 | | -import sys |
6 | 5 | import threading |
7 | 6 | import time |
8 | 7 | import unittest |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_re.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
6 | 6 | import re |
7 | 7 | import string |
8 | 8 | import sys |
9 | | -import time |
10 | 9 | import unittest |
11 | 10 | import warnings |
12 | 11 | from re import Scanner |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_type_aliases.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import pickle |
2 | | -import textwrap |
3 | 2 | import types |
4 | 3 | import unittest |
5 | 4 | from test.support import check_syntax_error, run_code |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_winapi.py -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import os |
4 | 4 | import pathlib |
5 | | -import random |
6 | 5 | import re |
7 | | -import threading |
8 | | -import time |
9 | 6 | import unittest |
10 | 7 | from test.support import import_helper, os_helper |
11 | 8 |
|
|