Skip to content

test: remove dead PR3068 workaround branch#6109

Open
henryiii wants to merge 1 commit into
masterfrom
test-remove-dead-pr3068-workaround
Open

test: remove dead PR3068 workaround branch#6109
henryiii wants to merge 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
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