diff options
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py index c8e06b96..ea30f59c 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -31,7 +31,7 @@ def raises(exc, obj, *args, **kwargs): :kwargs Arguments to be passed to the callable. """ try: - apply(obj, args, kwargs) + ret = apply(obj, args, kwargs) except Exception, v: if isinstance(exc, basestring): if exc.lower() in str(v).lower(): @@ -51,6 +51,6 @@ def raises(exc, obj, *args, **kwargs): exc.__name__, v.__class__.__name__, str(v) ) ) - raise AssertionError("No exception raised.") + raise AssertionError("No exception raised. Return value: {}".format(ret)) test_data = utils.Data(__name__) |