Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6453e9e

Browse files
committed
Issue #26564: Fix test_capi
1 parent ffcf1a5 commit 6453e9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_capi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ def test_buffer_overflow(self):
583583
r" .*\n"
584584
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n"
585585
r" Data at p: cb cb cb .*\n"
586+
r"\n"
586587
r"Fatal Python error: bad trailing pad byte")
587588
regex = regex.format(ptr=self.PTR_REGEX)
588589
regex = re.compile(regex, flags=re.DOTALL)
@@ -596,6 +597,7 @@ def test_api_misuse(self):
596597
r" The [0-9] pad bytes at tail={ptr} are FORBIDDENBYTE, as expected.\n"
597598
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n"
598599
r" Data at p: cb cb cb .*\n"
600+
r"\n"
599601
r"Fatal Python error: bad ID: Allocated using API 'm', verified using API 'r'\n")
600602
regex = regex.format(ptr=self.PTR_REGEX)
601603
self.assertRegex(out, regex)

0 commit comments

Comments
 (0)