Skip to content

Commit

Permalink
try to provide a better debugging msg
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jul 12, 2015
1 parent d2d3abc commit af7d5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_psutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def _test_cpu_percent(self, percent, last_ret, new_ret):
self.assertGreaterEqual(percent, 0.0)
self.assertLessEqual(percent, 100.0 * psutil.cpu_count())
except AssertionError as err:
self.fail("%s\nlast=%s\nnew=%s" % (
raise AssertionError("\n%s\nlast=%s\nnew=%s" % (
err, pprint.pformat(last_ret), pprint.pformat(new_ret)))

def test_sys_cpu_percent(self):
Expand Down

0 comments on commit af7d5c8

Please sign in to comment.