Skip to content

test_container_ccsid_4270: no backslash in f-string expressions (3.11 floor) (Fixes #7667) - #7668

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7667-20261104T0624Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7667-20261104T0624Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #7667

Root cause

tests/cics_crucible/test_container_ccsid_4270.py (from #7637) had b'\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_reads x2, 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 py311 over tests/ and gitgalaxy/ found only these two lines. No siblings.

Facts checked

  • python3.11 -m py_compile on the file: ok; ruff --target-version py311 invalid-syntax count 0.
  • The 4 test files above: 80 passed. audit_check.py: all clear.

Sibling gaps

  • tests/ruff_audit.py did not surface ruff's py311 invalid-syntax finding before merge (cause not investigated); no burned-estate program needs it (CI/lint gate only).

Lessons for agents

  • A backslash inside an f-string expression passes on a local 3.12 but breaks 3.11 CI; run ruff check --target-version py311 <file> and look for invalid-syntax.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 4, 2026 01:26
…SyntaxError on the 3.11 floor) (Fixes #7667)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 06:36
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 06:43
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 15a8ef0 into main Nov 4, 2026
70 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7667-20261104T0624Z branch November 4, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main is red: Full Suite Gate (All OS x Python)

1 participant