Added Py_INCREF(Py_None) for resume_process() and suspend_process() Windows implementations. This was causing a "Fatal Python error: deallocating None" error when the functions got called many times (reference http://bytes.com/topic/python/answers/554578-fatal-python-error-deallocating-none):
Added Py_INCREF(Py_None) for resume_process() and suspend_process() Windows implementations.
This was causing a "Fatal Python error: deallocating None" error when the functions got called many times (reference http://bytes.com/topic/python/answers/554578-fatal-python-error-deallocating-none):

import psutil, os, sys

p = psutil.Process(os.getpid())
while 1:
    print sys.getrefcount(None)
    p.getcwd()

Also disabled username memory leak test for Windows which takes ages to complete because of WMI.

git-svn-id: 9f18dd852162ff6c59c5533c0914e9cf81af9e7c@509 d8a29897-7e4b-0410-a74a-8bb4c295346f

hybridlogic/psutil,hybridlogic/psutil,tamentis/psutil,hybridlogic/psutil,tamentis/psutil