Skip to content

Commit

Permalink
test/__init__ fix bad invoke raise_from
Browse files Browse the repository at this point in the history
Argument grouping was wrong.
  • Loading branch information
jtmoon79 committed Feb 12, 2021
1 parent 1810797 commit d5d1166
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pike/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d5d1166

Please sign in to comment.