diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-17 20:28:09 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-17 20:28:09 +0200 |
commit | 3de7b673a08d3931beb03af28d471b984f411d23 (patch) | |
tree | 2220d3320686a0d817983b6c7f53ecf29ae1390f /psutil/tests/test_process.py | |
parent | c630eff0991116c036723a80531e85d8d599e6c8 (diff) | |
download | psutil-testing-envvar.tar.gz |
Introduce PSUTIL_TESTING env varpsutil-testing-envvar
...so that we can make stricter assertions in C and py code during tests
only.
* define a C function in _common.c which returns whether the var is set
* set PSUTIL_TESTING from the Makefile
Diffstat (limited to 'psutil/tests/test_process.py')
-rwxr-xr-x | psutil/tests/test_process.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index b1f2508f..3410ec0b 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -1391,6 +1391,8 @@ class TestProcess(unittest.TestCase): d2 = os.environ.copy() removes = [] + if 'PSUTIL_TESTING' in os.environ: + removes.append('PSUTIL_TESTING') if OSX: removes.extend([ "__CF_USER_TEXT_ENCODING", |