FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-157649: Check for reference leak in test_cext by vstinner · Pull Request #158227 · python/cpython · GitHub

Repository navigation

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 commented Sep 26, 2026 •
edited by bedevere-app Bot
Loading

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.

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 removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 26, 2026

Copy link
Copy Markdown
Member Author

!buildbot Windows

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 merged commit 7952713 into python:main Sep 26, 2026
59 of 61 checks passed
vstinner deleted the test_cext_refleak branch September 26, 2026 14:22
vstinner added a commit that referenced this pull request Oct 13, 2026
* gh-157649: Check for reference leak in test_cext (#158227)

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.

(cherry picked from commit 7952713)

* gh-149044: Build test_cext with -Wall -Wextra (#158867)

(cherry picked from commit b22a8c9)
vstinner added a commit that referenced this pull request Oct 13, 2026
…59314)

* [3.15] gh-157649: Check for reference leak in test_cext (#159296)

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

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.

(cherry picked from commit 7952713)

* gh-149044: Build test_cext with -Wall -Wextra (#158867)

(cherry picked from commit b22a8c9)
(cherry picked from commit 8514386)

* Fix refleak in test_datetime()

Only call PyDateTime_IMPORT once to initialize PyDateTimeAPI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL