Skip to content

test_parameters_deep_recursion failed on the free-threading CI job #155103

Description

@deadlovelll

Bug report

Bug description:

While working on gh-154902 for the 3.14 branch, I noticed that:

test.test_typing.GenericTests.test_parameters_deep_recursion failed on the x86_64-unknown-linux-gnu/gcc-free-threading job

Job link - https://github.com/python/cpython/actions/runs/30756488244/job/91519428824?pr=155072

======================================================================
FAIL: test_parameters_deep_recursion (test.test_typing.GenericTests.test_parameters_deep_recursion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/test/test_typing.py", line 4939, in test_parameters_deep_recursion
    with self.assertRaisesRegex(RecursionError, "in __parameter__ calculation"):
         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: RecursionError not raised

The test expects list[x].__parameters__ to raise RecursionError for a list
nested exceeds_recursion_limit() deep, and on this job it didn't. Every other job in
the same run passed.

I don't know the cause yet, filing so it isn't lost

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions