summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-05-04 03:19:02 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-05-04 03:19:02 +0200
commitb09b6b9b52d9adf16816e55a568fcb9ae9ce4364 (patch)
tree0d87992def472178d7eee4c81d41666b77b27364
parent075b1a9a9482f15f967b5e7a353b5ef4be187e62 (diff)
downloadpsutil-proc-namespace.tar.gz
update docstringproc-namespace
-rw-r--r--psutil/tests/__init__.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index 431d3045..ea283f6e 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -1017,15 +1017,11 @@ def _get_eligible_cpu():
class process_namespace:
- """A container that lists all the method names of the Process class
- + some reasonable parameters to be called with.
- Utilities such as parent(), children() and as_dict() are excluded.
- Used by those tests who wish to call all Process methods in one shot
- (and e.g. make sure they all raise NoSuchProcess).
+ """A container that lists all Process class method names + some
+ reasonable parameters to be called with. Utility methods (parent(),
+ children(), ...) are excluded.
- Usage:
-
- >>> ns = process_namespace(proc)
+ >>> ns = process_namespace(psutil.Process())
>>> for fun, name in ns.iter(ns.getters):
... fun()
"""
@@ -1149,9 +1145,8 @@ process_namespace._test()
class system_namespace:
- """A container that lists all the system-realted APIs in psutil
- namespace. Utilities such as cpu_percent() are excluded.
- Usage:
+ """A container that lists all the module-level, system-related APIs.
+ Utilities such as cpu_percent() are excluded. Usage:
>>> ns = system_namespace
>>> for fun, name in ns.iter(ns.getters):