]> granicus.if.org Git - python/commit
bpo-31719: Fix test_regrtest.test_crashed() on s390x (#3912)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Oct 2017 07:52:06 +0000 (00:52 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 07:52:06 +0000 (00:52 -0700)
commitcc4b6f1c6210460c0645b1df508e114e16805784
tree0e74f9c7000f57d1fabb2a3f3c66dc0701002b09
parent7440655bc5526a1920eeb43b41b3b2173d76065e
bpo-31719: Fix test_regrtest.test_crashed() on s390x (#3912)

Add a new _testcapi._read_null() function to crash Python in a
reliable way on s390x.

On s390x, ctypes.string_at(0) returns an empty string rather than
crashing.
Lib/test/support/__init__.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2017-10-06-22-37-38.bpo-31719.gHyrV3.rst [new file with mode: 0644]
Modules/_testcapimodule.c