Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Add assert_trace option to assert on the first Trace warning. #21

Closed
wants to merge 1 commit into from

Conversation

NHDaly
Copy link

@NHDaly NHDaly commented Dec 17, 2018

Adds @assert_trace which raises an AssertError at the first Trace warning.

@pfitzseb Asked me to open a PR for this. It relates to #6.

I'm not sure this is really a good solution, though, because this means it stops at the first warning, which could be desirable or not. Also, it's not a great testing interface, it'd be better if it returned false or something instead of throwing an AssertError. (Of course one/we can always wrap this in a try/catch to return false.)

Adds `@assert_trace` which raises an `AssertError` at the first Trace warning.
@NHDaly NHDaly changed the title Add assert_trace option to assert on the first Trace warning. Discussion: Add assert_trace option to assert on the first Trace warning. Dec 17, 2018
@pfitzseb pfitzseb closed this in #32 Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant