]> granicus.if.org Git - python/commit
bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888)
authorVictor Stinner <vstinner@redhat.com>
Fri, 7 Jun 2019 14:22:21 +0000 (16:22 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2019 14:22:21 +0000 (16:22 +0200)
commit3bf0f3ad2046ac674d8e8a2c074a5a8b3327797d
tree36188df3d87d41c2075183f46678b013cf59fdf2
parent3f345c39255dc3823dd989d4e3c93b12d18c44e0
bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888)

Replace two Python function calls with a single one to ensure that no
memory allocation is done between the invalid object is created and
when _PyObject_IsFreed() is called.
Lib/test/test_capi.py
Misc/NEWS.d/next/Tests/2019-06-07-12-23-15.bpo-37169.yfXTFg.rst [new file with mode: 0644]
Modules/_testcapimodule.c