giampaolo / psutil

Cross-platform lib for process and system monitoring in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Linux] psutil.tests.test_linux.TestRootFsDeviceFinder.test_disk_partitions_mocked: IndexError: list index out of range

arekm opened this issue · comments

Summary

  • OS: Linux
  • Architecture: x86_64
  • Psutil version: 5.9.8
  • Python version: 3.10.13
  • Type: tests

Description

ERROR: psutil.tests.test_linux.TestRootFsDeviceFinder.test_disk_partitions_mocked
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/arekm/rpm/BUILD/psutil-release-5.9.8/build-3/lib.linux-x86_64-cpython-310/psutil/tests/test_linux.py", line 1441, in test_disk_partitions_mocked
    part = psutil.disk_partitions()[0]
IndexError: list index out of range

psutil.disk_partitions() returns empty list []. Mock not kicking in or something?