summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-02-15 06:27:46 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-02-15 06:27:46 +0100
commit0da8c27a47673814f0a64bf4988fcd6d131bc3d6 (patch)
tree3ff80ecbb3baa085d38eaad8f67253ffb8e45427
parent984f060eefb328310060e0ec480c5c887b0f9704 (diff)
downloadpsutil-0da8c27a47673814f0a64bf4988fcd6d131bc3d6.tar.gz
remove failing test
-rw-r--r--psutil/_psbsd.py1
-rw-r--r--psutil/tests/test_misc.py12
2 files changed, 1 insertions, 12 deletions
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py
index 273426b2..b43e052a 100644
--- a/psutil/_psbsd.py
+++ b/psutil/_psbsd.py
@@ -99,6 +99,7 @@ svmem = namedtuple(
scputimes = namedtuple(
'scputimes', ['user', 'nice', 'system', 'idle', 'irq'])
pmem = namedtuple('pmem', ['rss', 'vms', 'text', 'data', 'stack'])
+pfullmem = pmem
pmmap_grouped = namedtuple(
'pmmap_grouped', 'path rss, private, ref_count, shadow_count')
pmmap_ext = namedtuple(
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
index c35e0d35..c8e17281 100644
--- a/psutil/tests/test_misc.py
+++ b/psutil/tests/test_misc.py
@@ -324,18 +324,6 @@ class TestMisc(unittest.TestCase):
finally:
importlib.reload(psutil)
- # https://travis-ci.org/giampaolo/psutil/jobs/111419416
- @unittest.skipIf(TRAVIS and LINUX, "skipped on travis")
- def test_memory_percent_0_division(self):
- import collections
- try:
- retval = collections.namedtuple("mem", "total")(0)
- with mock.patch(
- "psutil._psplatform.virtual_memory", return_value=retval):
- self.assertRaises(ValueError, psutil.Process().memory_percent)
- finally:
- importlib.reload(psutil)
-
# ===================================================================
# --- Example script tests