diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-12-02 22:08:00 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-12-02 22:08:00 +0100 |
commit | cdb2e2be8fa0cfce867800419f1746ea87dd5cac (patch) | |
tree | 9a8b37ec6b74718a929b0b8bbf0fdab00f456e36 | |
parent | fce2564643ded6d837a98d00ffaf285e4e484806 (diff) | |
download | psutil-cdb2e2be8fa0cfce867800419f1746ea87dd5cac.tar.gz |
change assert in test
-rwxr-xr-x | psutil/tests/test_posix.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index b4b23084..c59f9a1c 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -313,11 +313,7 @@ class TestSystemAPIs(unittest.TestCase): # on OSX and OPENBSD ps doesn't show pid 0 if OSX or OPENBSD and 0 not in pids_ps: pids_ps.insert(0, 0) - - if pids_ps != pids_psutil: - difference = [x for x in pids_psutil if x not in pids_ps] + \ - [x for x in pids_ps if x not in pids_psutil] - self.fail("difference: " + str(difference)) + self.assertEqual(pids_ps, pids_psutil) # for some reason ifconfig -a does not report all interfaces # returned by psutil |