gh-146102: Fix type slot_bf_getbuffer() error handling by vstinner · Pull Request #151346 · python/cpython
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.
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)
philthompson10 pushed a commit to philthompson10/cpython that referenced this pull request
…151346) 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.
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