Skip to content

Tests fails with Python 3.15.0a2 #700

Closed

Description

@hegjon
FAIL: test_alias_names_still_exist (test_typing_extensions.AllTests.test_alias_names_still_exist)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6895, in test_alias_names_still_exist
    self.assertTrue(
    ~~~~~~~~~~~~~~~^
        hasattr(typing_extensions, name),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        f"{name} no longer exists in typing",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: False is not true : no_type_check_decorator no longer exists in typing

======================================================================
FAIL: test_all_names_in___all__ (test_typing_extensions.AllTests.test_all_names_in___all__)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6854, in test_all_names_in___all__
    self.assertEqual({*exclude, *typing_extensions.__all__},
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     actual_names)
                     ^^^^^^^^^^^^^
AssertionError: Items in the first set but not the second:
'no_type_check_decorator'

======================================================================
FAIL: test_typing_extensions_includes_standard (test_typing_extensions.AllTests.test_typing_extensions_includes_standard)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6836, in test_typing_extensions_includes_standard
    self.assertTrue(hasattr(typing_extensions, name))
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true

More information: https://bugzilla.redhat.com/show_bug.cgi?id=2416981

Activity

  1. hegjon commented on Nov 25, 2025

    @hegjon
    ContributorAuthor

    Related to python/typing#1425 ?

  2. Daraan commented on Nov 25, 2025

    @Daraan
    Contributor

    Related to python/typing#1425 ?

    Yes, or rather the follow up python/cpython#133602.

    The follow up on typing_extensions is #699, which is not yet in a release.

  3. hroncok commented on Jan 13, 2026

    @hroncok
    Contributor

    Even with #699 applied, test_alias_names_still_exist fails

    ======================================================================
    FAIL: test_alias_names_still_exist (test_typing_extensions.AllTests.test_alias_names_still_exist)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6895, in test_alias_names_still_exist
        self.assertTrue(
        ~~~~~~~~~~~~~~~^
            hasattr(typing_extensions, name),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            f"{name} no longer exists in typing",
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        )
        ^
    AssertionError: False is not true : no_type_check_decorator no longer exists in typing
    
    ----------------------------------------------------------------------
    
  4. Daraan commented on Jan 14, 2026

    @Daraan
    Contributor

    Thank you, you are right. Adjusting __all__ is not enough we need to also adjust _typing_names for the tests. I've added #723 and tested with 3.15.0a4 for the tests to pass.

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