From: Victor Stinner Date: Tue, 15 Mar 2016 22:36:28 +0000 (+0100) Subject: Issue #26564: Fix test_capi X-Git-Tag: v3.6.0a1~464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6453e9ed0add5f60d150692cef4596702dcc3290;p=python Issue #26564: Fix test_capi --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 1de19a02f3..8e6245bf6f 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -583,6 +583,7 @@ class PyMemDebugTests(unittest.TestCase): r" .*\n" r" The block was made by call #[0-9]+ to debug malloc/realloc.\n" r" Data at p: cb cb cb .*\n" + r"\n" r"Fatal Python error: bad trailing pad byte") regex = regex.format(ptr=self.PTR_REGEX) regex = re.compile(regex, flags=re.DOTALL) @@ -596,6 +597,7 @@ class PyMemDebugTests(unittest.TestCase): r" The [0-9] pad bytes at tail={ptr} are FORBIDDENBYTE, as expected.\n" r" The block was made by call #[0-9]+ to debug malloc/realloc.\n" r" Data at p: cb cb cb .*\n" + r"\n" r"Fatal Python error: bad ID: Allocated using API 'm', verified using API 'r'\n") regex = regex.format(ptr=self.PTR_REGEX) self.assertRegex(out, regex)