Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-146102: Fix type slot_bf_getbuffer() error handling#151346

Open
vstinner wants to merge 1 commit into
python:mainpython/cpython:mainfrom
vstinner:getbuffervstinner/cpython:getbufferCopy head branch name to clipboard
Open

gh-146102: Fix type slot_bf_getbuffer() error handling#151346
vstinner wants to merge 1 commit into
python:mainpython/cpython:mainfrom
vstinner:getbuffervstinner/cpython:getbufferCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jun 11, 2026

Copy link
Copy Markdown
Member

Call PyBuffer_Release() if PyObject_GC_New() fails.

Fix also bytes_join(): only call Py_DECREF(item) after formatting the error message which uses item.

Call PyBuffer_Release() if PyObject_GC_New() fails.

Fix also bytes_join(): only call Py_DECREF(item) after formatting the
error message which uses item.
@vstinner

Copy link
Copy Markdown
Member Author

Tests / Windows / Build and test (x64, tail-call) (pull_request): Failing after 10m

It's a test_logging test which fails randomly: I reported the bug to issue gh-84649.

FAIL: test_rollover_at_midnight (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_at_midnight)

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.