@@ -534,6 +534,8 @@ def test_buffer_overflow(self): |
|
|
534 |
534 |
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n" |
535 |
535 |
r" Data at p: cb cb cb .*\n" |
536 |
536 |
r"\n" |
|
537 |
+r"Enable tracemalloc to get the memory block allocation traceback\n" |
|
538 |
+r"\n" |
537 |
539 |
r"Fatal Python error: bad trailing pad byte") |
538 |
540 |
regex = regex.format(ptr=self.PTR_REGEX) |
539 |
541 |
regex = re.compile(regex, flags=re.DOTALL) |
@@ -548,6 +550,8 @@ def test_api_misuse(self): |
|
|
548 |
550 |
r" The block was made by call #[0-9]+ to debug malloc/realloc.\n" |
549 |
551 |
r" Data at p: cb cb cb .*\n" |
550 |
552 |
r"\n" |
|
553 |
+r"Enable tracemalloc to get the memory block allocation traceback\n" |
|
554 |
+r"\n" |
551 |
555 |
r"Fatal Python error: bad ID: Allocated using API 'm', verified using API 'r'\n") |
552 |
556 |
regex = regex.format(ptr=self.PTR_REGEX) |
553 |
557 |
self.assertRegex(out, regex) |