# Bug report Refs https://github.com/python/cpython/pull/133265 Right here `PyLong_FromLong` can in theory (unlikely in practice) return `NULL`. It is missing this check. I understand that this is a test code, but I also don't see a reason why we should not be explicit about it. https://github.com/python/cpython/blob/13cb8ca3da75d6fe2a1114e58c24ca681fee411f/Modules/_testinternalcapi.c#L1045 cc @ericsnowcurrently I have a PR ready. <!-- gh-linked-prs --> ### Linked PRs * gh-133892 * gh-134988 <!-- /gh-linked-prs -->