Skip to content

Daily tests failed on Sat Jan 20 2024 #323

Closed

Description

@github-actions

Activity

  1. JelleZijlstra commented on Jan 20, 2024

    @JelleZijlstra
    Member

    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"
    
  2. AlexWaygood commented on Jan 20, 2024

    @AlexWaygood
    Member

    Oh, we need to backport python/cpython@ed6ea3e. I'll try and get to that today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions