You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of failures on 3.13, we probably just need to update some tests.
======================================================================
FAIL: test_generic_protocols_special_from_protocol (test_typing_extensions.ProtocolTests.test_generic_protocols_special_from_protocol)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/typing_extensions/typing_extensions/src/test_typing_extensions.py", line 3061, in test_generic_protocols_special_from_protocol
self.assertEqual(typing_extensions._get_protocol_attrs(PR), {'x'})
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Items in the first set but not the second:
'__non_callable_proto_members__'
======================================================================
FAIL: test_protocol_issubclass_error_message (test_typing_extensions.ProtocolTests.test_protocol_issubclass_error_message)
----------------------------------------------------------------------
TypeError: Instance and class checks can only be used with @runtime_checkable protocols
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/typing_extensions/typing_extensions/src/test_typing_extensions.py", line [34](https://github.com/python/typing_extensions/actions/runs/7591493329/job/20679618345#step:4:35)71, in test_protocol_issubclass_error_message
with self.assertRaisesRegex(TypeError, re.escape(expected_error_message)):
issubclass(int, Vec2D)
AssertionError: "Protocols\ with\ non\-method\ members\ don't\ support\ issubclass\(\)\.\ Non\-method\ members:\ 'x',\ 'y'\." does not match "Instance and class checks can only be used with @runtime_checkable protocols"
Activity
JelleZijlstra commentedon Jan 20, 2024
A couple of failures on 3.13, we probably just need to update some tests.
AlexWaygood commentedon Jan 20, 2024
Oh, we need to backport python/cpython@ed6ea3e. I'll try and get to that today.