← 返回首页
gh-74690: Add more tests for runtime-checkable protocols by AlexWaygood · Pull Request #103347 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-74690: Add more tests for runtime-checkable protocols#103347

Merged
AlexWaygood merged 1 commit into
python:mainfrom
AlexWaygood:more-runtime-protocol-tests
Apr 7, 2023
Merged

gh-74690: Add more tests for runtime-checkable protocols#103347
AlexWaygood merged 1 commit into
python:mainfrom
AlexWaygood:more-runtime-protocol-tests

Conversation

AlexWaygood commented Apr 7, 2023
edited
Loading

Copy link
Copy Markdown
Member

This PR adds more tests for runtime-checkable protocols, ensuring various edge cases are covered. Some of the invariants I'm adding tests for would have been broken by some more hare-brained optimisations that we considered, but rejected, in #74690 and #103310.

AlexWaygood merged commit 800382a into python:main Apr 7, 2023

Copy link
Copy Markdown
Contributor

Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

AlexWaygood deleted the more-runtime-protocol-tests branch April 7, 2023 17:21
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 7, 2023
…nGH-103347) (cherry picked from commit 800382a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

Copy link
Copy Markdown

GH-103350 is a backport of this pull request to the 3.11 branch.

bedevere-bot removed the needs backport to 3.11 only security fixes label Apr 7, 2023
miss-islington added a commit that referenced this pull request Apr 7, 2023
(cherry picked from commit 800382a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir topic-typing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.