Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] gh-108303: Move all inspect test files to test_inspect/ (GH-109607) #110732

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Lib/test/libregrtest/findtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"test_concurrent_futures",
"test_future_stmt",
"test_gdb",
"test_inspect",
"test_multiprocessing_fork",
"test_multiprocessing_forkserver",
"test_multiprocessing_spawn",
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import builtins
import contextlib
import errno
import glob
import json
Expand Down
6 changes: 6 additions & 0 deletions Lib/test/test_inspect/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os
from test import support


def load_tests(*args):
return support.load_package_tests(os.path.dirname(__file__), *args)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
from test.support.import_helper import DirsOnSysPath, ready_to_import
from test.support.os_helper import TESTFN
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 inspect_stock_annotations
from test import inspect_stringized_annotations
from test import inspect_stringized_annotations_2

from . import inspect_fodder as mod
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:
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ def test_random_files(self):
# TODO: Remove this once we can untokenize PEP 701 syntax
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)

if not support.is_resource_enabled("cpu"):
Expand Down
1 change: 1 addition & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,7 @@ TESTSUBDIRS= idlelib/idle_test \
test/test_email/data \
test/test_future_stmt \
test/test_gdb \
test/test_inspect \
test/test_import \
test/test_import/data \
test/test_import/data/circular_imports \
Expand Down
Loading