diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-15 22:36:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-15 22:36:28 (GMT) |
commit | 6453e9ed0add5f60d150692cef4596702dcc3290 (patch) | |
tree | f590146fef85b2fa3f53e00347a97c54193f3995 /Lib | |
parent | ffcf1a54d39fcb2b9f9830b64708c423c2c4a18d (diff) | |
download | cpython-6453e9ed0add5f60d150692cef4596702dcc3290.zip cpython-6453e9ed0add5f60d150692cef4596702dcc3290.tar.gz cpython-6453e9ed0add5f60d150692cef4596702dcc3290.tar.bz2 |
Issue #26564: Fix test_capi
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_capi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 1de19a0..8e6245b 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) |