mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[3.12] gh-108303: Move all inspect test files to test_inspect/
(GH-109607) (#110732)
(cherry picked from commit 732532b0af
)
This commit is contained in:
parent
49da117665
commit
0102faf0ca
11 changed files with 15 additions and 7 deletions
|
@ -20,6 +20,7 @@ SPLITTESTDIRS: set[TestName] = {
|
||||||
"test_concurrent_futures",
|
"test_concurrent_futures",
|
||||||
"test_future_stmt",
|
"test_future_stmt",
|
||||||
"test_gdb",
|
"test_gdb",
|
||||||
|
"test_inspect",
|
||||||
"test_multiprocessing_fork",
|
"test_multiprocessing_fork",
|
||||||
"test_multiprocessing_forkserver",
|
"test_multiprocessing_forkserver",
|
||||||
"test_multiprocessing_spawn",
|
"test_multiprocessing_spawn",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import builtins
|
import builtins
|
||||||
import contextlib
|
|
||||||
import errno
|
import errno
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
|
|
6
Lib/test/test_inspect/__init__.py
Normal file
6
Lib/test/test_inspect/__init__.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import os
|
||||||
|
from test import support
|
||||||
|
|
||||||
|
|
||||||
|
def load_tests(*args):
|
||||||
|
return support.load_package_tests(os.path.dirname(__file__), *args)
|
|
@ -31,12 +31,13 @@ from test.support import MISSING_C_DOCSTRINGS, ALWAYS_EQ
|
||||||
from test.support.import_helper import DirsOnSysPath, ready_to_import
|
from test.support.import_helper import DirsOnSysPath, ready_to_import
|
||||||
from test.support.os_helper import TESTFN
|
from test.support.os_helper import TESTFN
|
||||||
from test.support.script_helper import assert_python_ok, assert_python_failure
|
from test.support.script_helper import assert_python_ok, assert_python_failure
|
||||||
from test import inspect_fodder as mod
|
|
||||||
from test import inspect_fodder2 as mod2
|
|
||||||
from test import support
|
from test import support
|
||||||
from test import inspect_stock_annotations
|
|
||||||
from test import inspect_stringized_annotations
|
from . import inspect_fodder as mod
|
||||||
from test import inspect_stringized_annotations_2
|
from . import inspect_fodder2 as mod2
|
||||||
|
from . import inspect_stock_annotations
|
||||||
|
from . import inspect_stringized_annotations
|
||||||
|
from . import inspect_stringized_annotations_2
|
||||||
|
|
||||||
|
|
||||||
# Functions tested in this suite:
|
# Functions tested in this suite:
|
|
@ -1908,7 +1908,7 @@ class TestRoundtrip(TestCase):
|
||||||
# TODO: Remove this once we can untokenize PEP 701 syntax
|
# TODO: Remove this once we can untokenize PEP 701 syntax
|
||||||
testfiles.remove(os.path.join(tempdir, "test_fstring.py"))
|
testfiles.remove(os.path.join(tempdir, "test_fstring.py"))
|
||||||
|
|
||||||
for f in ('buffer', 'builtin', 'fileio', 'inspect', 'os', 'platform', 'sys'):
|
for f in ('buffer', 'builtin', 'fileio', 'os', 'platform', 'sys'):
|
||||||
testfiles.remove(os.path.join(tempdir, "test_%s.py") % f)
|
testfiles.remove(os.path.join(tempdir, "test_%s.py") % f)
|
||||||
|
|
||||||
if not support.is_resource_enabled("cpu"):
|
if not support.is_resource_enabled("cpu"):
|
||||||
|
|
|
@ -2141,6 +2141,7 @@ TESTSUBDIRS= idlelib/idle_test \
|
||||||
test/test_email/data \
|
test/test_email/data \
|
||||||
test/test_future_stmt \
|
test/test_future_stmt \
|
||||||
test/test_gdb \
|
test/test_gdb \
|
||||||
|
test/test_inspect \
|
||||||
test/test_import \
|
test/test_import \
|
||||||
test/test_import/data \
|
test/test_import/data \
|
||||||
test/test_import/data/circular_imports \
|
test/test_import/data/circular_imports \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue