Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arekm opened this issue Jan 21, 2024 · 0 comments

Comments

@arekm
Copy link

arekm commented Jan 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant