Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e6646d7
gh-161430: Omit tests expected to be skipped in regrtest
vstinner Nov 5, 2026
4787c7f
Fix NEED_MODULES logic
vstinner Nov 5, 2026
6f6bd83
Complete ruleset
vstinner Nov 5, 2026
2d93e09
Detect WASI using _PYTHON_HOST_PLATFORM env var
vstinner Nov 5, 2026
28431f5
Ignore more tests on WASI
vstinner Nov 5, 2026
3756938
Filter more tests
vstinner Nov 5, 2026
8aa0d9e
Add support.supports_perf_trampoline_profiling() function
vstinner Nov 5, 2026
379f303
Filter test_gdb if gdb program is not found
vstinner Nov 5, 2026
20876b5
Update for Emscripten
vstinner Nov 5, 2026
cd46dbd
Run prek --all-files
vstinner Nov 5, 2026
fc3d09a
Filter test_asdl_parser on iOS
vstinner Nov 5, 2026
9367f53
Add missing imports
vstinner Nov 5, 2026
fe10387
Skip test_interpreters on Free Threading
vstinner Nov 5, 2026
ce8761a
Skip test_free_threading sub-tests on Windows
vstinner Nov 5, 2026
59eb2ba
Skip test_xxlimited if xxlimited is missing
vstinner Nov 5, 2026
2da05cd
Add comments
vstinner Nov 5, 2026
e87dc93
Disable NEED_MODULES
vstinner Nov 5, 2026
bfd2b07
Avoid sys.is_remote_debug_enabled()
vstinner Nov 5, 2026
3a9eb25
Disable shutil.which('gdb') check
vstinner Nov 5, 2026
9f606c3
Remove commented and dead code
vstinner Nov 6, 2026
17f9ca3
Filter more tests
vstinner Nov 6, 2026
09c49f2
Update Apple mobile/Emscripten/WASI; fix Android
vstinner Nov 6, 2026
8a438c5
Missing dependencies on Android
vstinner Nov 6, 2026
0b9c802
Run prek --all-files (remove import importlib)
vstinner Nov 6, 2026
a72df3e
Invert is_android test
vstinner Nov 6, 2026
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
20 changes: 19 additions & 1 deletion Lib/test/libregrtest/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .runtests import RunTests
from .result import State, TestResult, TestStats, Location
from .skipped import expected_to_be_skipped
from .utils import (
StrPath, TestName, TestTuple, TestList, FilterDict,
printlist, count, format_duration)
Expand Down Expand Up @@ -204,6 +205,16 @@ def write_junit(self, filename: StrPath) -> None:
for s in ET.tostringlist(root):
f.write(s)

def split_expected_skip(self, tests):
skipped = []
expected = []
for name in tests:
if expected_to_be_skipped(name):
expected.append(name)
else:
skipped.append(name)
return (skipped, expected)

def display_result(self, tests: TestTuple, quiet: bool, print_slowest: bool) -> None:
ansi = get_colors()
green = ansi.GREEN
Expand All @@ -221,13 +232,20 @@ def display_result(self, tests: TestTuple, quiet: bool, print_slowest: bool) ->
all_tests = []
omitted = set(tests) - self.get_executed()

# Filter tests expected to be skipped
skipped, expected_skip = self.split_expected_skip(self.skipped)
if expected_skip:
print()
count_text = count(len(expected_skip), "test")
print(f"{count_text} expected to be skipped (not listed)")

# less important
all_tests.append(
(sorted(omitted), "test", f"{yellow}{{}} omitted:{reset}")
)
if not quiet:
all_tests.append(
(self.skipped, "test", f"{yellow}{{}} skipped:{reset}")
(skipped, "test", f"{yellow}{{}} skipped:{reset}")
)
all_tests.append(
(
Expand Down
Loading
Loading