From b4bebd67cef2e7ac8de001f27b6a90185f48221f Mon Sep 17 00:00:00 2001 From: ggorlen <17895165+ggorlen@users.noreply.github.com> Date: Thu, 11 Jun 2020 20:37:31 -0700 Subject: [PATCH] handle and display AssertionErrors --- codewars_test/test_framework.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codewars_test/test_framework.py b/codewars_test/test_framework.py index e395347..50b9f85 100644 --- a/codewars_test/test_framework.py +++ b/codewars_test/test_framework.py @@ -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()))