Comment #24 on issue 340 by
gtmacdon...@gmail.com: get_open_files might
hang forever
http://code.google.com/p/psutil/issues/detail?id=340
test_get_open_files passes for me. I had failures for three others though.
I'm running Python 2.7, 64 bit, on Windows 7, psutil-0.7.1.
======================================================================
FAIL: test_disk_partitions (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_psutil.py", line 566, in test_disk_partitions
assert os.path.exists(disk.device), disk
AssertionError: partition(device='Q:\\', mountpoint='Q:\\', fstype='',
opts='fixed')
======================================================================
FAIL: test_get_set_ionice (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_psutil.py", line 206, in inner
return fun(self, *args, **kwargs)
File "test_psutil.py", line 918, in test_get_set_ionice
self.assertEqual(p.get_ionice(), value)
AssertionError: 2 != 0
======================================================================
FAIL: test_sys_cpu_times_percent (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_psutil.py", line 527, in test_sys_cpu_times_percent
self._test_cpu_percent(percent)
File "test_psutil.py", line 506, in _test_cpu_percent
assert percent >= 0.0, percent
AssertionError: -800.0
----------------------------------------------------------------------