Skip to content

Commit

Permalink
Updated test for builds without debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunderberg committed Aug 26, 2023
1 parent 5714290 commit 04d17fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/python/unittest/test_runtime_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 04d17fc

Please sign in to comment.