Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bring over TypeVarTests from CPython#165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 2 commits intopython:mainfromJelleZijlstra:typevartests
May 21, 2023

Conversation

@JelleZijlstra
Copy link
Member

I started out trying to backportpython/cpython#104571, but
realized that it makes sense to backport CPython's whole TypeVarTests
class since we now have our own implementation of TypeVar.

I dropped test_var_substitution and test_bad_var_substitution
since they rely on the internaltyping_subst method, and the
type substitution logic is generally very hard to get precisely
the same across versions.

jemand771 reacted with thumbs up emoji
I started out trying to backportpython/cpython#104571, butrealized that it makes sense to backport CPython's whole TypeVarTestsclass since we now have our own implementation of TypeVar.I dropped test_var_substitution and test_bad_var_substitutionsince they rely on the internal __typing_subst__ method, and thetype substitution logic is generally very hard to get preciselythe same across versions.
@JelleZijlstra
Copy link
MemberAuthor

CI is failing because we didn't bring over the fix forpython/cpython#84123. It doesn't seem worth the effort to fix that for early versions of 3.7 and 3.8, so I'm just going to skip that test before 3.9.

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

Haven't done a line-by-line review, but I trust in your copy-and-paste abilities :)

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

Reviewers

@AlexWaygoodAlexWaygoodAlexWaygood approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JelleZijlstra@AlexWaygood

[8]ページ先頭

©2009-2025 Movatter.jp