summaryrefslogtreecommitdiff
path: root/psutil/tests/test_contracts.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-04-05 02:16:40 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2019-04-05 02:16:40 +0200
commit84448be84278b1701ea1d4163cd46c6b959bf1be (patch)
treeae7f92f6e4e91c1218669e634abfb4ce5c5968de /psutil/tests/test_contracts.py
parent16128f7298f490d11368dad316fa8e53348ed52d (diff)
parente471e7cbad9e2d84f9fb114da86df78755836852 (diff)
downloadpsutil-osx-ionice.tar.gz
merge from masterosx-ionice
Diffstat (limited to 'psutil/tests/test_contracts.py')
-rwxr-xr-xpsutil/tests/test_contracts.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index d39213cb..d84c0ba3 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -625,8 +625,11 @@ class TestFetchAllProcesses(unittest.TestCase):
# commented as on Linux we might get
# '/foo/bar (deleted)'
# assert os.path.exists(nt.path), nt.path
- elif fname in ('addr', 'perms'):
- assert value
+ elif fname == 'addr':
+ assert value, repr(value)
+ elif fname == 'perms':
+ if not WINDOWS:
+ assert value, repr(value)
else:
self.assertIsInstance(value, (int, long))
self.assertGreaterEqual(value, 0)