Use better failure message

This commit is contained in:
Foo 2017-08-05 18:02:38 +03:00
parent f111a95b0d
commit 0a1cf1780f
1 changed files with 3 additions and 2 deletions

View File

@ -85,6 +85,7 @@ def main(*args, **kwargs):
class TestCase(_TestCase):
def fail(self, *args, **kwargs):
def fail(self, msg=None):
super(TestCase, self).fail(*args, **kwargs)
suite.fail(self.__class__.__name__, 'Failed test')
suite.fail(self.__class__.__name__,
msg or 'Test failed without message')