Skip to content

Conversation

JelleZijlstra
Copy link
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.
@JelleZijlstra
Copy link
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.

Copy link
Member

@AlexWaygood AlexWaygood 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 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