Skip to content

ci: fix flaky assertion in pool detached drop test on free-threaded builds - #6480

Merged
davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:drop-detached
Oct 5, 2026
Merged

davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:drop-detached

Conversation

@davidhewitt

Copy link
Copy Markdown
Member

test_pyobject_drop_detached_doesnt_decrease_refcnt has been failing on various CI jobs recently; studing the test it's fairly clear why. On free-threaded builds other threads might clear the pool while the child thread which did the detached drop is joined.

I don't see many sensible choices other than just gating the assertion on GIL-enabled builds.

@davidhewitt
davidhewitt added this pull request to the merge queue Oct 5, 2026
Merged via the queue into PyO3:main with commit 7b83fec Oct 5, 2026
53 checks passed
@davidhewitt
davidhewitt deleted the drop-detached branch October 5, 2026 08:36
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

Successfully merging this pull request may close these issues.

2 participants