Skip to content

fix(tests): make the render-detail fixture's message interpreter-stable - #145

Merged
omarsy merged 1 commit into
mainfrom
fix/render-detail-test-message
Oct 22, 2026
Merged

omarsy merged 1 commit into
mainfrom
fix/render-detail-test-message

Conversation

@omarsy

@omarsy omarsy commented Oct 22, 2026

Copy link
Copy Markdown
Member

One-line fixture fix: the render-detail test asserted division by zero but rendered {{ 1 // 0 }} — CPython 3.11 spells that integer division or modulo by zero, so the test has never passed anywhere (CI has been billing-locked since before #136 merged). The fixture now uses true division {{ 1 / 0 }}, whose message is stable on every CPython; the assertion's intent (detail carries the exception TYPE only; the full reason rides __cause__) is unchanged and now version-independent.

This was the only test that will be genuinely red on main when the billing lock clears — with it fixed, main's first real CI run should be green. Suite: 1032 passed; remaining failure is the oracle coverage guard's intentional drift refusal (local catalog tip ≠ pin; passes at the pinned commit CI uses).

test_the_render_error_detail_is_bounded_and_names_only_the_type asserted
'division by zero' in str(exc.__cause__) but rendered {{ 1 // 0 }}, whose
message on CPython 3.11 is 'integer division or modulo by zero' — the
test has never passed anywhere (CI billing-locked since before #136
merged; locally failing since). Switch the fixture to true division
{{ 1 / 0 }}: 'division by zero' on every CPython, so the assertion (the
surfaced detail carries the TYPE only; the full reason rides the cause)
no longer depends on the interpreter's exact spelling. The docstring
records why true division is load-bearing.

This was the only test that will be genuinely red on main the moment
the Actions billing lock clears; with it fixed, main's first real CI
run should be green (the other known failure — the oracle coverage
guard — is an intentional drift refusal that passes at the pinned
catalog commit CI checks out).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T08:33:12.185349Z 79b2797 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@omarsy
omarsy merged commit 2a6bdae into main Oct 22, 2026
1 check failed
@omarsy
omarsy deleted the fix/render-detail-test-message branch October 22, 2026 08:33
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