From 04d17fcb4b6f7151720bc83df0cb0c962210a0fe Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Fri, 25 Aug 2023 20:46:00 -0500 Subject: [PATCH] Updated test for builds without debug symbols --- tests/python/unittest/test_runtime_error.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/python/unittest/test_runtime_error.py b/tests/python/unittest/test_runtime_error.py index 6613f71762c9..6ae6c6f314fb 100644 --- a/tests/python/unittest/test_runtime_error.py +++ b/tests/python/unittest/test_runtime_error.py @@ -102,7 +102,9 @@ def error_callback(): except ValueError as err: frames = traceback.extract_tb(err.__traceback__) - cpp_frames = [frame for frame in frames if frame.filename.endswith(".cc")] + cpp_frames = [ + frame for frame in frames if frame.filename.endswith(".cc") or frame.filename.endswith(".c") + ] assert len(cpp_frames) >= 1