Skip to content

Fix master CI: update test_bool_args_in_help for the #370 help change - #379

Open
glaziermag wants to merge 1 commit into
lebrice:masterfrom
glaziermag:fix-test-bool-args-in-help
Open

glaziermag wants to merge 1 commit into
lebrice:masterfrom
glaziermag:fix-test-bool-args-in-help

Conversation

@glaziermag

Copy link
Copy Markdown

The Python package workflow has failed on master since #370 was merged (run 41934650510). #370 stopped appending (default: None) to the help of required arguments that have no default, and updated test_issue_48.py to match, but test/test_bools.py::test_bool_args_in_help still expects it after the required -a flag. This PR removes it from that test's expected help text.

To reproduce on master:

uv run pytest test/test_bools.py::test_bool_args_in_help
FAILED test/test_bools.py::test_bool_args_in_help - AssertionError: assert 'usage: pytes...ult: False)\n' == 'usage: pytes...ult: False)\n'

The help text now comes from the branch #370 added to SimpleHelpFormatter._get_help_string (help_formatter.py#L81-L87), which bypasses ArgumentDefaultsHelpFormatter for a required argument whose default is None.

On master the 3.12 job fails with 1 failed, 1258 passed, and the jobs for the other Python versions are cancelled. #377 mentions the same failure.

Fork check, with only the push trigger of build.yml changed so the workflow runs on these branches. Each run was attempted twice:

  • master: run 42899508390 fails this test in both attempts, and fail-fast cancels the other jobs.
  • this branch: run 42899506753 passes on 3.9 through 3.12, with and without extras, in both attempts.

🤖 Generated with Claude Code

lebrice#370 stopped appending "(default: None)" to the help of required
arguments that have no default, and updated test_issue_48.py to match.
test_bools.py::test_bool_args_in_help still expected it after the
required -a flag, so the Python package workflow has failed on master
since lebrice#370 was merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant