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] disk_io_counters() ValueError when parsing /sys/block #1684

Merged
merged 2 commits into from
Feb 9, 2020

Conversation

giampaolo
Copy link
Owner

Fixes:


======================================================================
ERROR: psutil.tests.test_linux.TestSystemDiskIoCounters.test_emulate_use_sysfs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/giampaolo/svn/psutil/psutil/tests/test_linux.py", line 1195, in test_emulate_use_sysfs
    wsysfs = psutil.disk_io_counters(perdisk=True)
  File "/home/giampaolo/svn/psutil/psutil/__init__.py", line 2065, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1124, in disk_io_counters
    for entry in gen:
  File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1110, in read_sysfs
    wbytes, wtime, _, busy_time, _) = map(int, fields)
ValueError: too many values to unpack (expected 11)

@giampaolo giampaolo merged commit 796b2dd into master Feb 9, 2020
@giampaolo giampaolo deleted the disk_io_counters-linux-err branch February 9, 2020 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant