Skip to content

test: remove dead PR3068 workaround branch - #6109

Merged
rwgk merged 1 commit into
masterfrom
test-remove-dead-pr3068-workaround
Jul 27, 2026
Merged

rwgk merged 1 commit into
masterfrom
test-remove-dead-pr3068-workaround

Conversation

@henryiii

@henryiii henryiii commented Jul 25, 2026 •

Copy link
Copy Markdown
Collaborator

This code can't ever be hit (sys.version_info will never be exactly (3, 9)).

🤖 AI text below 🤖

Description

tests/test_class_sh_trampoline_shared_from_this.py had a constant
WORKAROUND_ENABLING_ROLLBACK_OF_PR3068. It compared sys.version_info to
(3, 9). sys.version_info is a 5-element tuple, so this comparison was
always False. The guarded branch in test_std_make_shared_factory never ran
since 2021.

This PR removes the constant and the dead branch. Only the pytest.raises
path stays, which is the path that always ran. The import sys line is now
unused, so it is also removed. No other file changes.

Suggested changelog entry:

  • Removed a dead code path in a test.

`WORKAROUND_ENABLING_ROLLBACK_OF_PR3068` compared the 5-element
`sys.version_info` tuple to `(3, 9)`, so it was always False. The guarded
branch never ran. Remove the constant and keep only the branch that runs.

Assisted-by: ClaudeCode:claude-opus-5

@rwgk rwgk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @henryiii!

@rwgk
rwgk merged commit 17b3b60 into master Jul 27, 2026
75 checks passed
@rwgk
rwgk deleted the test-remove-dead-pr3068-workaround branch July 27, 2026 02:09
@github-actions github-actions Bot added the needs changelog Possibly needs a changelog entry label Jul 27, 2026
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Aug 3, 2026
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.

2 participants