Skip to content

Fix typing_extensions tests for 3.10a3 - #773

Merged
gvanrossum merged 1 commit into
python:masterfrom
Fidget-Spinner:fix-3.10
Jan 2, 2021
Merged

gvanrossum merged 1 commit into
python:masterfrom
Fidget-Spinner:fix-3.10

Conversation

@Fidget-Spinner

@Fidget-Spinner Fidget-Spinner commented Jan 2, 2021 •

Copy link
Copy Markdown
Member

Runtime checks for user-defined Generics were loosened to allow PEP 612 in 3.10 latest (tentatively Python 3.10a3), so some tests which expect TypeError are now failing. This ignores them for Python 3.10 and above.

Sample test failure output:

======================================================================
FAIL: test_defining_generic_protocols_old_style (__main__.ProtocolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_typing_extensions.py", line 1244, in test_defining_generic_protocols_old_style
    PR[int, 1]
AssertionError: TypeError not raised

----------------------------------------------------------------------

@Fidget-Spinner Fidget-Spinner changed the title Fix tests for 3.10a3 Fix typing_extensions tests for 3.10a3 Jan 2, 2021
@gvanrossum
gvanrossum merged commit c7a981a into python:master Jan 2, 2021
@Fidget-Spinner
Fidget-Spinner deleted the fix-3.10 branch January 2, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants