[Feature Request] assert_raises should report calling location #2692
Labels
enhancement
New feature or request
good first issue
Good for newcomers
mojo-repo
Tag all issues with this label
mojo-stdlib
Tag for issues related to standard library
Review Mojo's priorities
What is your request?
It would be useful if the error message produced when
assert_raises
fails, and therefore it raises itselfmojo/stdlib/src/testing/testing.mojo
Line 386 in f5f5109
included the location of the caller who didn't raise.
What is your motivation for this change?
Currently if you have a single test file with multiple assert_raises conditions, like this file:
mojo/stdlib/test/collections/test_list.mojo
Lines 404 to 414 in f5f5109
If one of the conditions fails, the error message is just:
with no indication of where the assertion is coming from
Any other details?
No response
The text was updated successfully, but these errors were encountered: