changeset: 100553:769dfcb701ee user: Victor Stinner date: Tue Mar 15 23:36:28 2016 +0100 files: Lib/test/test_capi.py description: Issue #26564: Fix test_capi diff -r 8215dae7ec3c -r 769dfcb701ee Lib/test/test_capi.py --- a/Lib/test/test_capi.py Tue Mar 15 22:49:40 2016 +0100 +++ b/Lib/test/test_capi.py Tue Mar 15 23:36:28 2016 +0100 @@ -583,6 +583,7 @@ 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 @@ 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)