Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move test.support import to the top of the file
  • Loading branch information
graingert committed Dec 28, 2024
commit 1a5f91026adea50778b13adfc50f190b748896a2
3 changes: 2 additions & 1 deletion Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

from test.support import cpython_only, import_helper
from test.support import MISSING_C_DOCSTRINGS, ALWAYS_EQ
from test.support import run_simple_async_fn
from test.support.import_helper import DirsOnSysPath, ready_to_import
from test.support.os_helper import TESTFN, temp_cwd
from test.support.script_helper import assert_python_ok, assert_python_failure, kill_python
Expand Down Expand Up @@ -1161,7 +1162,7 @@ def f(self):
sys.modules.pop("inspect_actual")

def test_nested_class_definition_inside_async_function(self):
from test.support import run_simple_async_fn as run
run = run_simple_async_fn

self.assertSourceEqual(run(mod2.func225), 226, 227)
self.assertSourceEqual(mod2.cls226, 231, 235)
Expand Down