From 3de7b673a08d3931beb03af28d471b984f411d23 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 17 May 2017 20:28:09 +0200 Subject: Introduce PSUTIL_TESTING env var ...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 --- psutil/tests/test_process.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'psutil/tests/test_process.py') 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", -- cgit v1.2.1