FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bring over TypeVarTests from CPython by JelleZijlstra · Pull Request #165 · python/typing_extensions · GitHub

Bring over TypeVarTests from CPython - #165

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:typevartests
May 21, 2023
Merged

Bring over TypeVarTests from CPython#165
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:typevartests

Conversation

Copy link
Copy Markdown
Member

I started out trying to backport python/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 internal typing_subst method, and the
type substitution logic is generally very hard to get precisely
the same across versions.

I started out trying to backport python/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 internal __typing_subst__ method, and the
type substitution logic is generally very hard to get precisely
the same across versions.

Copy link
Copy Markdown
Member Author

CI is failing because we didn't bring over the fix for python/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.

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL