Skip to content

[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

@vstinner

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)
Only call PyDateTime_IMPORT once to initialize PyDateTimeAPI.
@vstinner

Copy link
Copy Markdown
Member Author

!buildbot s390x Fedora Stable PR

@bedevere-bot

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
vstinner enabled auto-merge (squash) October 13, 2026 13:01
@vstinner
vstinner merged commit dd78c51 into python:3.14 Oct 13, 2026
47 checks passed
@vstinner
vstinner deleted the test_cext14 branch October 13, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants