cpython: 3c3df33f2655 (original) (raw)

Mercurial > cpython

changeset 100527:3c3df33f2655

Issue #26516: Fix test_capi on Windows Pointers are formatted differently. [#26516]

Victor Stinner victor.stinner@gmail.com
date Mon, 14 Mar 2016 17:10:36 +0100
parents 8a5a0e223559
children d8d6ec1333e6
files Lib/test/test_capi.py
diffstat 1 files changed, 8 insertions(+), 4 deletions(-)[+] [-] Lib/test/test_capi.py 12

line wrap: on

line diff

--- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -559,6 +559,8 @@ class Test_testcapi(unittest.TestCase): class MallocTests(unittest.TestCase): ENV = 'debug'

def check(self, code): with support.SuppressCrashReport(): @@ -568,10 +570,10 @@ class MallocTests(unittest.TestCase): def test_buffer_overflow(self): out = self.check('import _testcapi; _testcapi.pymem_buffer_overflow()')

@@ -583,17 +585,19 @@ class MallocTests(unittest.TestCase): r" The block was made by call #[0-9]+ to debug malloc/realloc.\n" r" Data at p: cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb\n" r"Fatal Python error: bad trailing pad byte")

def test_api_misuse(self): out = self.check('import _testcapi; _testcapi.pymem_api_misuse()')