From 811c09cab8ce983fb1a36bcca32f9fed103eda30 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Oct 2026 02:53:51 +0200 Subject: [PATCH] Test: add regex to catch C assertion failures --- master/custom/steps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master/custom/steps.py b/master/custom/steps.py index bc50f547..22fd366e 100644 --- a/master/custom/steps.py +++ b/master/custom/steps.py @@ -49,6 +49,10 @@ class Test(BaseTest): # Py_FatalError() call r"Fatal Python error:", + # C assert() failed: + # "Assertion failed: xxx, function xxx, file xxx, line xxx." + r"Assertion failed: .*, function .*, file .*, line", + # PyErr_WriteUnraisable() exception: usually, error in # garbage collector or destructor r"Exception ignored in:",