python-test-framework icon indicating copy to clipboard operation
python-test-framework copied to clipboard

Prevent AssertException from crashing tests

Open hobovsky opened this issue 2 years ago • 0 comments

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 https://github.com/codewars/python-test-framework/pull/12 but the PR hasn't been worked on since a very long time anyway.

hobovsky avatar Jul 28 '23 20:07 hobovsky