Repository navigation
test_container_ccsid_4270: no backslash in f-string expressions (3.11 floor) (Fixes #7667) - #7668
Merged
Merged
Conversation
…SyntaxError on the 3.11 floor) (Fixes #7667) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y (Part of #7667) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7667
Root cause
tests/cics_crucible/test_container_ccsid_4270.py(from #7637) hadb'\xe9'inside f-string expressions (lines 145-146): a backslash in an f-string expression is a SyntaxError on 3.11, the project floor. Collection of the module failed, and every test that parses all test files (test_source_readsx2,test_java_subprocess_utf8,test_collection_determinism_6255) failed on all 3 OSes (run 41782512693). A local 3.12 hid it. No infrastructure flakes.Fix
Hoist
_truth(b"\xe9", 37, 1208)into a module constant_E_ACUTE_TRUTH; expected strings are byte-identical.Class sweep
Class: py3.12-only f-string syntax on the 3.11 floor.
ruff check --target-version py311overtests/andgitgalaxy/found only these two lines. No siblings.Facts checked
python3.11 -m py_compileon the file: ok;ruff --target-version py311invalid-syntax count 0.audit_check.py: all clear.Sibling gaps
tests/ruff_audit.pydid not surface ruff's py311invalid-syntaxfinding before merge (cause not investigated); no burned-estate program needs it (CI/lint gate only).Lessons for agents
ruff check --target-version py311 <file>and look forinvalid-syntax.🤖 Generated with Claude Code