summaryrefslogtreecommitdiff
path: root/psutil/_psutil_sunos.c
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-11-11 21:35:41 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-11-11 21:35:41 +0100
commit0662915f58949a4084f9fb0c278d143708cf3ede (patch)
tree48ad658a3312343a1a42bf268a015aaace562c86 /psutil/_psutil_sunos.c
parentffde3264f09c5412ce3987617130f2c9d5d7a22b (diff)
downloadpsutil-0662915f58949a4084f9fb0c278d143708cf3ede.tar.gz
get rid of PSUTIL_TESTING env var: it must be necessarily set from cmdline, hence 'python -m psutil.tests' won't work out of the boxpsutil-test-flag
Diffstat (limited to 'psutil/_psutil_sunos.c')
-rw-r--r--psutil/_psutil_sunos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c
index 083b78cb..2abcd829 100644
--- a/psutil/_psutil_sunos.c
+++ b/psutil/_psutil_sunos.c
@@ -1592,8 +1592,10 @@ PsutilMethods[] = {
"Return CPU statistics"},
// --- others
- {"py_psutil_testing", py_psutil_testing, METH_VARARGS,
- "Return True if PSUTIL_TESTING env var is set"},
+ {"py_psutil_is_testing", py_psutil_is_testing, METH_VARARGS,
+ "Return True if psutil is in testing mode"},
+ {"py_psutil_set_testing", py_psutil_set_testing, METH_VARARGS,
+ "Set psutil in testing mode"},
{NULL, NULL, 0, NULL}
};