Skip to content

gh-157649: Check for reference leak in test_cext - #158227

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:test_cext_refleak
Sep 26, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:test_cext_refleak

Conversation

@vstinner

@vstinner vstinner commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

test_cext now discovers and calls all "test" functions. On a debug build, it also checks for reference leaks.

Fix a reference leak in test_virtual_object(): use a dealloc function which calls Py_DECREF() on the type, and trigger an explicit garbage collection.

test_cext now discovers and calls all "test" functions. On a debug
build, it also checks for reference leaks.

Fix a reference leak in test_virtual_object(): use a dealloc function
which calls Py_DECREF() on the type, and trigger an explicit garbage
collection.
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 71bcc9d 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158227%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 26, 2026
@vstinner

Copy link
Copy Markdown
Member Author

!buildbot Windows

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6a110c0 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158227%2Fmerge

The command will test the builders whose names match following regular expression: Windows

The builders matched are:

  • AMD64 Windows PGO Tailcall PR
  • ARM64 Windows PR
  • AMD64 Windows11 Non-Debug PR
  • AMD64 Windows Server 2025 Refleaks PR
  • AMD64 Windows Server 2025 Clang PR
  • AMD64 Windows PGO PR
  • AMD64 Windows10 PR
  • AMD64 Windows PGO NoGIL Tailcall PR
  • AMD64 Windows PGO NoGIL PR
  • ARM64 Windows Non-Debug PR
  • AMD64 Windows Server 2022 NoGIL PR

@vstinner
vstinner merged commit 7952713 into python:main Sep 26, 2026
59 of 61 checks passed
@vstinner
vstinner deleted the test_cext_refleak branch September 26, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants