Skip to content

Commit

Permalink
Merge pull request #5 from ggorlen/add-assertion-error
Browse files Browse the repository at this point in the history
handle and display AssertionErrors
  • Loading branch information
kazk authored Jun 12, 2020
2 parents b3821b0 + b4bebd6 commit e5a0195
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codewars_test/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def wrapper(func):
time = timer()
try:
func()
except AssertionError as e:
display('FAILED', str(e))
except Exception:
fail('Unexpected exception raised')
tb_str = ''.join(format_exception(*exc_info()))
Expand Down

0 comments on commit e5a0195

Please sign in to comment.