Skip to content

mark: reject non-decimal digits in -m keyword values - #15461

Open
RonnyPfannschmidt wants to merge 2 commits into
mainfrom
claude/project-thread-kffekd
Open

RonnyPfannschmidt wants to merge 2 commits into
mainfrom
claude/project-thread-kffekd

Conversation

@RonnyPfannschmidt

Copy link
Copy Markdown
Member

Requested by Ronny · project thread

🤖 Written by Claude Opus 5.5 via Claude Code for the pytest maintainers; I prompted it, it did the work, I read it.

-m 'foo(a=²)' crashed with an INTERNALERROR because str.isdigit() accepts characters like ² that int() rejects. This switches to isdecimal() and adds the two cases to test_invalid_kwarg_name_or_value. Replaces #15324.


Generated by Claude Code

RonnyPfannschmidt and others added 2 commits November 26, 2026 17:12
str.isdigit() accepts characters such as "²" that int() rejects, so
`-m 'foo(a=²)'` crashed with an INTERNALERROR instead of a usage error.
Use isdecimal(), which matches what int() accepts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014GZsRG21GjCczNewqK2aUA

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

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant