diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-01 12:24:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 12:24:59 +0200 |
commit | 7eadee31db2f038763a3a6f978db1ea76bbc4674 (patch) | |
tree | 55d75da147cc3a40b989e18df1126de5167b66cf /psutil/tests/test_posix.py | |
parent | 7d55ce4e3d81705264398a15ffaa1896f4e1aefc (diff) | |
download | psutil-7eadee31db2f038763a3a6f978db1ea76bbc4674.tar.gz |
Fix pylint warnings / cleanup (#2218)
Diffstat (limited to 'psutil/tests/test_posix.py')
-rwxr-xr-x | psutil/tests/test_posix.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index d8732230..0dc1dfda 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -63,6 +63,8 @@ def ps(fmt, pid=None): cmd.append('ax') if SUNOS: + # XXX: set() has not get() method so this cannot work; not sure + # what I meant in here. fmt_map = set(('command', 'comm', 'start', 'stime')) fmt = fmt_map.get(fmt, fmt) @@ -408,8 +410,7 @@ class TestSystemAPIs(PsutilTestCase): "raw devices not supported" in err or \ "permission denied" in err: continue - else: - raise + raise else: self.assertAlmostEqual(usage.total, total, delta=tolerance) self.assertAlmostEqual(usage.used, used, delta=tolerance) |