cpython: d8d6ec1333e6 (original) (raw)

Mercurial > cpython

changeset 100528:d8d6ec1333e6

Issue #26516: Fix test_capi on 32-bit system On 32-bit system, only 4 bytes after dumped for the tail. [#26516]

Victor Stinner victor.stinner@gmail.com
date Mon, 14 Mar 2016 17:40:09 +0100
parents 3c3df33f2655
children 9caf236cbe6d
files Lib/test/test_capi.py
diffstat 1 files changed, 9 insertions(+), 11 deletions(-)[+] [-] Lib/test/test_capi.py 20

line wrap: on

line diff

--- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -4,6 +4,7 @@ import os import pickle import random +import re import subprocess import sys import sysconfig @@ -572,30 +573,27 @@ class MallocTests(unittest.TestCase): out = self.check('import _testcapi; _testcapi.pymem_buffer_overflow()') regex = (r"Debug memory block at address p={ptr}: API 'm'\n" r" 16 bytes originally requested\n"

def test_api_misuse(self): out = self.check('import _testcapi; _testcapi.pymem_api_misuse()') regex = (r"Debug memory block at address p={ptr}: API 'm'\n" r" 16 bytes originally requested\n"