diff options
Diffstat (limited to 'psutil/tests/test_posix.py')
-rwxr-xr-x | psutil/tests/test_posix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index 31b81926..edef7e7d 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -308,7 +308,7 @@ class TestSystemAPIs(PsutilTestCase): if len(pids_ps) - len(pids_psutil) > 1: 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)) + raise self.fail("difference: " + str(difference)) # for some reason ifconfig -a does not report all interfaces # returned by psutil @@ -322,7 +322,7 @@ class TestSystemAPIs(PsutilTestCase): if line.startswith(nic): break else: - self.fail( + raise self.fail( "couldn't find %s nic in 'ifconfig -a' output\n%s" % ( nic, output)) |