From dbadc1b61327d06bb176d0465ad5831a619126be Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 7 Mar 2015 01:22:02 +0100 Subject: clean up cert handling, fix mitmproxy/mitmproxy#472 --- test/tutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/tutils.py') 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__) -- cgit v1.2.3