Skip to content

gh-83637: Make IDLE calltip tests pass without docstrings#152746

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-83637-calltip-tests-no-docstrings
Open

gh-83637: Make IDLE calltip tests pass without docstrings#152746
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-83637-calltip-tests-no-docstrings

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 1, 2026

Copy link
Copy Markdown
Member

Four Get_argspec tests in test_calltip hard-code expected docstrings in their output, so they fail under -OO (and would under a build without docstrings): test_builtins, test_methods, test_bound_methods, and test_properly_formatted.

Skip them with test.support.requires_docstrings, as test_inspect and test_pydoc do. This covers both -OO (Python docstrings stripped) and MISSING_C_DOCSTRINGS builds, so test_builtins moves from @skipIf(MISSING_C_DOCSTRINGS) to the stronger @requires_docstrings. test_multiline_docstring keeps @skipIf(MISSING_C_DOCSTRINGS) since it only needs C docstrings and already passes under -OO.

Verified: normal run all pass; -OO run skips the four and reports no failures.

🤖 Generated with Claude Code

Skip the tests that check docstrings with test.support.requires_docstrings,
as test_inspect and test_pydoc do.  They failed under -OO.
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 1, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant