summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-02-04 14:37:40 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-02-04 14:37:40 +0100
commit2d5e89d111937c61e098c7a5136108e2729682d5 (patch)
tree4c6e46dd07341d4bc6a71be176421c44802d0493
parent12e8b5bf27c7993d1b232e4f0f876961fd0524d7 (diff)
downloadpsutil-mem-refactoring-2.tar.gz
add another pss/uss test casemem-refactoring-2
-rw-r--r--test/test_psutil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_psutil.py b/test/test_psutil.py
index 158f3458..f4eee6bb 100644
--- a/test/test_psutil.py
+++ b/test/test_psutil.py
@@ -1695,6 +1695,9 @@ class TestProcess(unittest.TestCase):
memex = psutil.Process().memory_info_ex()
if LINUX or OSX or WINDOWS:
self.assertGreater(memex.uss, 0)
+ if LINUX:
+ self.assertGreater(memex.pss, 0)
+ self.assertGreater(memex.pss, memex.uss)
@unittest.skipIf(OPENBSD or NETBSD, "not available on this platform")
def test_memory_maps(self):