Skip to content

gh-131151: Add tests for exceptions raised by descriptors of comparison methods. - #159258

Open
vasiliyk wants to merge 1 commit into
python:mainfrom
vasiliyk:gh-131151-richcompare
Open

vasiliyk wants to merge 1 commit into
python:mainfrom
vasiliyk:gh-131151-richcompare

Conversation

@vasiliyk

@vasiliyk vasiliyk commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

GH-131588 fixed the issue without adding a test.

This PR adds tests for rich comparison methods to test_special_method_lookup:
an exception raised by a descriptor's __get__ must propagate out of the comparison instead of being cleared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant