Skip to content

Prevent AssertException from crashing tests#27

Open
hobovsky wants to merge 1 commit into
codewars:masterfrom
hobovsky:fix/handle-assertexception
Open

Prevent AssertException from crashing tests#27
hobovsky wants to merge 1 commit into
codewars:masterfrom
hobovsky:fix/handle-assertexception

Conversation

@hobovsky

Copy link
Copy Markdown

A minor change which gracefully handles AssertException thrown by assertions from inside of test cases decorated with @test.it.

The fix should allow authors to use allow_raise = True in a way which does not result in noisy stacktraces.

It does not affect test suites which do not use decorators and which use top-level assertions - test suites of this kind continue working as they are today.

Most probably invalidates #12 but the PR hasn't been worked on since a very long time anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant