summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-07 15:41:39 (GMT)
committerGitHub <noreply@github.com>2019-06-07 15:41:39 (GMT)
commit357626676035d2bb12ea92e0edf3c7b383d627ec (patch)
tree576271214cbdf8e351d3987233fbeb5af3531d52 /Misc
parentdd492d9c352eb0fa2bc48ea9acc47e47a7fab8a0 (diff)
downloadcpython-357626676035d2bb12ea92e0edf3c7b383d627ec.zip
cpython-357626676035d2bb12ea92e0edf3c7b383d627ec.tar.gz
cpython-357626676035d2bb12ea92e0edf3c7b383d627ec.tar.bz2
bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888) (GH-13895)
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. (cherry picked from commit 3bf0f3ad2046ac674d8e8a2c074a5a8b3327797d)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-06-07-12-23-15.bpo-37169.yfXTFg.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-06-07-12-23-15.bpo-37169.yfXTFg.rst b/Misc/NEWS.d/next/Tests/2019-06-07-12-23-15.bpo-37169.yfXTFg.rst
new file mode 100644
index 0000000..f2f0a8b
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-06-07-12-23-15.bpo-37169.yfXTFg.rst
@@ -0,0 +1 @@
+Rewrite ``_PyObject_IsFreed()`` unit tests.