Modified psutil.test() to emulate ps aux output which shows process name between [] parentheses when the cmdline is not retrievable.
Modified psutil.test() to emulate ps aux output which shows process name between [] parentheses when the cmdline is not retrievable.

Difference:

UID       PID %CPU %MEM     VSZ     RSS START     TIME COMMAND
0           0  0.0  0.0       0       0 Mar20    00:00
0           1  0.0  0.3    1740     600 Mar20    00:04 /sbin/init
0           2  0.0  0.0       0       0 Mar20    00:00
0           3  0.0  0.0       0       0 Mar20    00:00
0           4  0.0  0.0       0       0 Mar20    00:05


...vs:

UID       PID %CPU %MEM     VSZ     RSS START     TIME COMMAND
0           0  0.0  0.0       0       0 Mar20    00:00 [sched]
0           1  0.0  0.3    1740     600 Mar20    00:04 /sbin/init
0           2  0.0  0.0       0       0 Mar20    00:00 [kthreadd]
0           3  0.0  0.0       0       0 Mar20    00:00 [migration/0]
0           4  0.0  0.0       0       0 Mar20    00:05 [ksoftirqd/0]

tomprince/psutil,Q-Leap-Networks/psutil,jorik041/psutil,giampaolo/psutil,landryb/psutil,msarahan/psutil,mrjefftang/psutil,mindw/psutil,tomprince/psutil,packages/psutil,jorik041/psutil,cloudbase/psutil,landryb/psutil,msarahan/psutil,mindw/psutil,jamesblunt/psutil,jamesblunt/psutil,0-wiz-0/psutil,jamesblunt/psutil,landryb/psutil,packages/psutil,mrjefftang/psutil,tomprince/psutil,qbit/psutil,mrjefftang/psutil,tomprince/psutil,msarahan/psutil,mindw/psutil,giampaolo/psutil,qbit/psutil,mindw/psutil,jorik041/psutil,packages/psutil,0-wiz-0/psutil,Q-Leap-Networks/psutil,cloudbase/psutil,landryb/psutil,mindw/psutil,landryb/psutil,tomprince/psutil,qbit/psutil,cloudbase/psutil