Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dac06d1

Browse filesBrowse files
vstinnernoahbkim
authored andcommitted
pythongh-120417: Remove unused imports in tests (part 1) (python#120629)
1 parent aab8af8 commit dac06d1
Copy full SHA for dac06d1

File tree

Expand file treeCollapse file tree

10 files changed

+3
-13
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+3
-13
lines changed

‎Lib/test/_test_embed_set_config.py

Copy file name to clipboardExpand all lines: Lib/test/_test_embed_set_config.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# (before the site module is run).
77

88
import _testinternalcapi
9-
import os
109
import sys
1110
import unittest
1211
from test import support

‎Lib/test/support/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/support/__init__.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
raise ImportError('support must be imported from the test package')
55

66
import contextlib
7-
import dataclasses
87
import functools
98
import _opcode
109
import os

‎Lib/test/test___all__.py

Copy file name to clipboardExpand all lines: Lib/test/test___all__.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from test.support import warnings_helper
44
import os
55
import sys
6-
import types
76

87

98
if support.check_sanitizer(address=True, memory=True):

‎Lib/test/test_call.py

Copy file name to clipboardExpand all lines: Lib/test/test_call.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
from test.support import (cpython_only, is_wasi, requires_limited_api, Py_DEBUG,
3-
set_recursion_limit, skip_on_s390x, import_helper)
3+
set_recursion_limit, skip_on_s390x)
44
try:
55
import _testcapi
66
except ImportError:
@@ -14,7 +14,6 @@
1414
import itertools
1515
import gc
1616
import contextlib
17-
import sys
1817
import types
1918

2019

‎Lib/test/test_capi/test_list.py

Copy file name to clipboardExpand all lines: Lib/test/test_capi/test_list.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import gc
2-
import weakref
31
import unittest
42
from test.support import import_helper
53
from collections import UserList

‎Lib/test/test_capi/test_misc.py

Copy file name to clipboardExpand all lines: Lib/test/test_capi/test_misc.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import time
1818
import types
1919
import unittest
20-
import warnings
2120
import weakref
2221
import operator
2322
from test import support

‎Lib/test/test_capi/test_structmembers.py

Copy file name to clipboardExpand all lines: Lib/test/test_capi/test_structmembers.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import unittest
22
from test.support import import_helper
3-
from test.support import warnings_helper
43

54
# Skip this test if the _testcapi module isn't available.
65
import_helper.import_module('_testcapi')

‎Lib/test/test_concurrent_futures/executor.py

Copy file name to clipboardExpand all lines: Lib/test/test_concurrent_futures/executor.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import threading
22
import time
3-
import unittest
43
import weakref
54
from concurrent import futures
65
from test import support

‎Lib/test/test_ctypes/test_generated_structs.py

Copy file name to clipboardExpand all lines: Lib/test/test_ctypes/test_generated_structs.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
import re
1515
from dataclasses import dataclass
1616
from functools import cached_property
17-
import sys
1817

1918
import ctypes
20-
from ctypes import Structure, Union, _SimpleCData
19+
from ctypes import Structure, Union
2120
from ctypes import sizeof, alignment, pointer, string_at
2221
_ctypes_test = import_helper.import_module("_ctypes_test")
2322

‎Lib/test/test_ctypes/test_structures.py

Copy file name to clipboardExpand all lines: Lib/test/test_ctypes/test_structures.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import struct
33
import sys
44
import unittest
5-
from ctypes import (CDLL, Array, Structure, Union, POINTER, sizeof, byref, alignment,
5+
from ctypes import (CDLL, Structure, Union, POINTER, sizeof, byref, alignment,
66
c_void_p, c_char, c_wchar, c_byte, c_ubyte,
77
c_uint8, c_uint16, c_uint32,
88
c_short, c_ushort, c_int, c_uint,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.