Skip to content

Commit b4bebd6

Browse files
committed
handle and display AssertionErrors
1 parent b3821b0 commit b4bebd6

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)