nikademus79 / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Error in test_process_name() on OS X #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
======================================================================
ERROR: test_process_name (_posix.PosixSpecificTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jloden/src/psutil/test/_posix.py", line 78, in test_process_name
    name_ps = ps("ps --no-headers -o comm -p %s" %self.pid)
  File "/Users/jloden/src/psutil/test/_posix.py", line 23, in ps
    output = output.split('\n')[1]
IndexError: list index out of range

----------------------------------------------------------------------

Caused by lack of a "comm" keyword on OS X so the command is failing to
produce proper output. 

Original issue reported on code.google.com by jlo...@gmail.com on 18 Feb 2010 at 6:40

GoogleCodeExporter commented 8 years ago
Fixed in r498, tested on OS X and Linux so far, needs FreeBSD testing to confirm
works for all Posix platforms.

Original comment by jlo...@gmail.com on 18 Feb 2010 at 6:41

GoogleCodeExporter commented 8 years ago
Works on freebsd.

Original comment by billiej...@gmail.com on 18 Feb 2010 at 6:48

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r498 == revision 6123f60bf962

Original comment by g.rodola on 2 Mar 2013 at 11:51