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
{{ message }}
Repository navigation
Test ordering error with free-threaded builds #159293
Running the Python test suite on macOS on Linux in single-process, non-randomised order, using a free-threaded build, generates test failures - the tests:
test.test_functools.TestLRUPy.test_lru_recursion
test_pickle (68 failures)
all raise RecursionError. The failures are not seen if you run each test in isolation, or if you run the test suite in multi-process mode.
Reproduction:
$ configure --disable-gil
$ make
$ ./python.exe -m test --fast-ci --single-process --no-randomize
I found these failures while trying to set up a free threading build for iOS.
Activity
freakboy3742 commentedon Oct 13, 2026
For posterity - a simplified reproduction case (extracted from #159293) is:
gh-159293: Restore the recursion limit after the free-threading race …
[3.14] gh-159293: Restore the recursion limit after the free-threadin…
[3.15] gh-159293: Restore the recursion limit after the free-threadin…