diff --git a/pike/test/__init__.py b/pike/test/__init__.py index f92881ca..74c40aa6 100644 --- a/pike/test/__init__.py +++ b/pike/test/__init__.py @@ -432,10 +432,12 @@ def assert_error(self, status): except model.ResponseError as err: o.response = err.response if err.response.status != status: - raise_from(self.failureException( - '"%s" raised when "%s" expected' % (err.response.status, status), - err, - )) + raise_from( + self.failureException( + '"%s" raised when "%s" expected' % (err.response.status, status), + ), + err + ) def setUp(self): if self.loglevel != logging.NOTSET: