summaryrefslogtreecommitdiff
path: root/psutil/tests/test_system.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-03-03 14:30:43 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-03-03 14:30:43 +0100
commit4d271d7cd9a77fb0d3e9a715401a7dc4c548ce6e (patch)
tree7c9ef963002aea08815d46f0e95bf17b19a751e2 /psutil/tests/test_system.py
parent9ce97b01c86412e85fa0f9eba5570092be903eb0 (diff)
parent544e9daa4f66a9f80d7bf6c7886d693ee42f0a13 (diff)
downloadpsutil-4d271d7cd9a77fb0d3e9a715401a7dc4c548ce6e.tar.gz
Merge branch 'master' into parallel-tests
Diffstat (limited to 'psutil/tests/test_system.py')
-rwxr-xr-xpsutil/tests/test_system.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 2f4fbe26..0fa03d37 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -107,22 +107,6 @@ class TestProcessAPIs(unittest.TestCase):
self.assertGreaterEqual(p.info['pid'], 0)
assert m.called
- def test_process_iter_new_only(self):
- ls1 = list(psutil.process_iter(attrs=['pid']))
- ls2 = list(psutil.process_iter(attrs=['pid'], new_only=True))
- self.assertGreater(len(ls1), len(ls2))
- # assume no more than 3 new processes were created in the meantime
- self.assertIn(len(ls2), [0, 1, 2, 3, 4, 5])
-
- sproc = get_test_subprocess()
- ls = list(psutil.process_iter(attrs=['pid'], new_only=True))
- self.assertIn(len(ls2), [0, 1, 2, 3, 4, 5])
- for p in ls:
- if p.pid == sproc.pid:
- break
- else:
- self.fail("subprocess not found")
-
@unittest.skipIf(PYPY and WINDOWS,
"get_test_subprocess() unreliable on PYPY + WINDOWS")
def test_wait_procs(self):