Skip to content

Commit cd88069

Browse files
committed
Revert more import sorting
1 parent fbbce37 commit cd88069

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

Lib/test/test_import/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,30 @@
2727
from unittest import mock
2828
import _imp
2929

30+
from test.support import os_helper
3031
from test.support import (
3132
STDLIB_DIR,
32-
Py_GIL_DISABLED,
33-
Py_TRACE_REFS,
33+
swap_attr,
34+
swap_item,
3435
cpython_only,
35-
force_not_colorized_test_class,
3636
is_apple_mobile,
3737
is_emscripten,
3838
is_wasi,
39-
no_rerun,
40-
os_helper,
41-
requires_gil_enabled,
4239
run_in_subinterp,
4340
run_in_subinterp_with_config,
44-
script_helper,
45-
swap_attr,
46-
swap_item,
47-
threading_helper,
41+
Py_TRACE_REFS,
42+
requires_gil_enabled,
43+
Py_GIL_DISABLED,
44+
no_rerun,
45+
force_not_colorized_test_class,
4846
)
4947
from test.support.import_helper import (
5048
forget, make_legacy_pyc, unlink, unload, ready_to_import,
5149
DirsOnSysPath, CleanImport, import_module)
5250
from test.support.os_helper import (
5351
TESTFN, rmtree, temp_umask, TESTFN_UNENCODABLE)
52+
from test.support import script_helper
53+
from test.support import threading_helper
5454
from test.test_importlib.util import uncache
5555
from types import ModuleType
5656
try:

Lib/test/test_unicodedata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
"""
88

99
import hashlib
10+
from http.client import HTTPException
1011
import sys
1112
import unicodedata
1213
import unittest
13-
from http.client import HTTPException
1414
from test.support import (
15-
check_disallow_instantiation,
16-
cpython_only,
17-
force_not_colorized,
1815
open_urlresource,
1916
requires_resource,
2017
script_helper,
18+
cpython_only,
19+
check_disallow_instantiation,
20+
force_not_colorized,
2121
)
2222

2323

Lib/test/test_unittest/test_program.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
from test import support
55
import unittest
66
import test.test_unittest
7-
from test.support import force_not_colorized_test_class
87
from test.test_unittest.test_result import BufferedWriter
98

109

11-
@force_not_colorized_test_class
10+
@support.force_not_colorized_test_class
1211
class Test_TestProgram(unittest.TestCase):
1312

1413
def test_discovery_from_dotted_path(self):

0 commit comments

Comments
 (0)