Skip to content

Commit 1a5f910

Browse files
committed
move test.support import to the top of the file
1 parent c9c4808 commit 1a5f910

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
from test.support import cpython_only, import_helper
3838
from test.support import MISSING_C_DOCSTRINGS, ALWAYS_EQ
39+
from test.support import run_simple_async_fn
3940
from test.support.import_helper import DirsOnSysPath, ready_to_import
4041
from test.support.os_helper import TESTFN, temp_cwd
4142
from test.support.script_helper import assert_python_ok, assert_python_failure, kill_python
@@ -1161,7 +1162,7 @@ def f(self):
11611162
sys.modules.pop("inspect_actual")
11621163

11631164
def test_nested_class_definition_inside_async_function(self):
1164-
from test.support import run_simple_async_fn as run
1165+
run = run_simple_async_fn
11651166

11661167
self.assertSourceEqual(run(mod2.func225), 226, 227)
11671168
self.assertSourceEqual(mod2.cls226, 231, 235)

0 commit comments

Comments
 (0)