Skip to content

cached_property tests fail on Python 3.14 #1431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hynek opened this issue May 20, 2025 · 0 comments
Open

cached_property tests fail on Python 3.14 #1431

hynek opened this issue May 20, 2025 · 0 comments

Comments

@hynek
Copy link
Member

hynek commented May 20, 2025

Currently two test fail on 3.14:

FAILED tests/test_make.py::TestClassBuilder::test_no_references_to_original_when_using_cached_property - AssertionError: assert [<class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>] == [<class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>, <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>]

  At index 0 diff: <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'> != <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>
  Right contains one more item: <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>

  Full diff:
    [
        <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>,
  -     <class 'tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property.<locals>.C2'>,
    ]
FAILED tests/test_slots.py::test_slots_cached_property_infers_type - AssertionError: assert {'x': <class 'int'>} == {'x': <class 'int'>, 'f': <class 'int'>}

  Common items:
  {'x': <class 'int'>}
  Right contains 1 more item:
  {'f': <class 'int'>}

  Full diff:
    {
  -     'f': <class 'int'>,
        'x': <class 'int'>,
    }

Any chance yinz1 could have a look @diabolo-dan @dlax @Tinche? It might be a CPython problem and if so it would be good to report it ASAP.

Footnotes

  1. I'm in Pittsburgh right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant