You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================================
ERROR: test_cpu_times (_linux.LinuxSpecificTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/psutil/test/_linux.py", line 123, in test_cpu_times
kernel_ver = re.findall('\d.\d.\d', os.uname()[2])[0]
IndexError: list index out of range
----------------------------------------------------------------------
os.uname()[2] is a string starting with e.g. '3.10.9'.
>>> re.findall('\d.\d.\d', '3.10.9')
[]
Truncation of version number is also possible for older Linux versions:
>>> re.findall('\d.\d.\d', '3.9.11')
['3.9.1']
From Arfrever...@gmail.com on August 23, 2013 04:03:30
Original issue: http://code.google.com/p/psutil/issues/detail?id=420
The text was updated successfully, but these errors were encountered: