diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-07-12 16:58:33 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-07-12 16:58:33 +0200 |
commit | af7d5c84ac2003dabf94eb3e4d3efb416fe530cb (patch) | |
tree | 3e7051ba9b6a6d492a12248f5e68d434b6021f34 | |
parent | d2d3abc4ba5604c8b544572e9922cb1ad8dfd61b (diff) | |
download | psutil-af7d5c84ac2003dabf94eb3e4d3efb416fe530cb.tar.gz |
try to provide a better debugging msg
-rw-r--r-- | test/test_psutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_psutil.py b/test/test_psutil.py index 8562bc0a..d9de4b23 100644 --- a/test/test_psutil.py +++ b/test/test_psutil.py @@ -828,7 +828,7 @@ class TestSystemAPIs(unittest.TestCase): 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): |