#NEWLINE# def test_get_pids( self ) : #NEWLINE# #INDENT# w = wmi . WMI ( ) . Win32_Process ( ) #NEWLINE# wmi_pids = [ x . ProcessId for x in w ] #NEWLINE# wmi_pids . sort ( ) #NEWLINE# psutil_pids = psutil . get_pid_list ( ) #NEWLINE# psutil_pids . sort ( ) #NEWLINE# if ( wmi_pids != psutil_pids ) : #NEWLINE# #INDENT# difference = ( filter ( ( lambda x : ( x not in wmi_pids ) ) , psutil_pids ) + filter ( ( lambda x : ( x not in psutil_pids ) ) , psutil_pids ) ) #NEWLINE# self . fail ( ( 'difference: ' + str ( difference ) ) )