mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Issue #26564: Fix test_capi
This commit is contained in:
parent
ffcf1a54d3
commit
6453e9ed0a
1 changed files with 2 additions and 0 deletions
|
|
@ -583,6 +583,7 @@ class PyMemDebugTests(unittest.TestCase):
|
||||||
r" .*\n"
|
r" .*\n"
|
||||||
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n"
|
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n"
|
||||||
r" Data at p: cb cb cb .*\n"
|
r" Data at p: cb cb cb .*\n"
|
||||||
|
r"\n"
|
||||||
r"Fatal Python error: bad trailing pad byte")
|
r"Fatal Python error: bad trailing pad byte")
|
||||||
regex = regex.format(ptr=self.PTR_REGEX)
|
regex = regex.format(ptr=self.PTR_REGEX)
|
||||||
regex = re.compile(regex, flags=re.DOTALL)
|
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 [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" The block was made by call #[0-9]+ to debug malloc/realloc.\n"
|
||||||
r" Data at p: cb cb cb .*\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")
|
r"Fatal Python error: bad ID: Allocated using API 'm', verified using API 'r'\n")
|
||||||
regex = regex.format(ptr=self.PTR_REGEX)
|
regex = regex.format(ptr=self.PTR_REGEX)
|
||||||
self.assertRegex(out, regex)
|
self.assertRegex(out, regex)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue