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

[3.11] typing: Add more tests for TypeVar (GH-104571) by JelleZijlstra · Pull Request #104577 · python/cpython · GitHub

/ cpython Public

[3.11] typing: Add more tests for TypeVar (GH-104571) - #104577

Merged
JelleZijlstra merged 2 commits into
python:3.11from
JelleZijlstra:backport-2693194-3.11
May 17, 2023
Merged

[3.11] typing: Add more tests for TypeVar (GH-104571)#104577
JelleZijlstra merged 2 commits into
python:3.11from
JelleZijlstra:backport-2693194-3.11

Conversation

Copy link
Copy Markdown
Member

During the PEP 695 implementation at one point I made TypeVar.name return garbage, and all of test_typing passed. So I decided to add a few more tests. (cherry picked from commit 2693194)

During the PEP 695 implementation at one point I made
TypeVar.__name__ return garbage, and all of test_typing passed.
So I decided to add a few more tests. In the process I discovered
a minor incompatibility from the C implementation of TypeVar:
empty constraints were returned as None instead of an empty tuple..
(cherry picked from commit 2693194)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Comment thread Lib/test/test_typing.py Outdated
JelleZijlstra enabled auto-merge (squash) May 17, 2023 13:38
JelleZijlstra merged commit f106aef into python:3.11 May 17, 2023
JelleZijlstra deleted the backport-2693194-3.11 branch May 17, 2023 13:41
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 issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL