Skip to content

Commit e5a0195

Browse files
authored
Merge pull request #5 from ggorlen/add-assertion-error
handle and display AssertionErrors
2 parents b3821b0 + b4bebd6 commit e5a0195

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codewars_test/test_framework.py

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def wrapper(func):
109109
time = timer()
110110
try:
111111
func()
112+
except AssertionError as e:
113+
display('FAILED', str(e))
112114
except Exception:
113115
fail('Unexpected exception raised')
114116
tb_str = ''.join(format_exception(*exc_info()))

0 commit comments

Comments
 (0)