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

[3.14] gh-157649: Check for reference leak in test_cext (#159296) by vstinner · Pull Request #159314 · python/cpython · GitHub

Repository navigation

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

Merged
vstinner merged 2 commits into
python:3.14from
vstinner:test_cext14
Oct 13, 2026
Merged

vstinner merged 2 commits into
python:3.14from
vstinner:test_cext14

Conversation

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.

(cherry picked from commit 7952713)

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

…#159296)

* pythongh-157649: Check for reference leak in test_cext (python#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)

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

(cherry picked from commit b22a8c9)
(cherry picked from commit 8514386)
vstinner changed the title [3.15] gh-157649: Check for reference leak in test_cext (#159296) [3.14] gh-157649: Check for reference leak in test_cext (#159296) Oct 13, 2026
Only call PyDateTime_IMPORT once to initialize PyDateTimeAPI.

Copy link
Copy Markdown
Member Author

!buildbot s390x Fedora Stable PR

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 2bbb3e3 🤖

Results will be shown at:

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

The command will test the builders whose names match following regular expression: s390x Fedora Stable PR

The builders matched are:

  • s390x Fedora Stable PR

vstinner enabled auto-merge (squash) October 13, 2026 13:01
vstinner merged commit dd78c51 into python:3.14 Oct 13, 2026
47 checks passed
vstinner deleted the test_cext14 branch October 13, 2026 13:07
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