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

disk and net io_counters() may raise TypeError #1062

Closed
giampaolo opened this issue May 12, 2017 · 1 comment
Closed

disk and net io_counters() may raise TypeError #1062

giampaolo opened this issue May 12, 2017 · 1 comment
Labels

Comments

@giampaolo
Copy link
Owner

In case there are no disks or NICs installed on the system, see:
https://ci.appveyor.com/project/giampaolo/psutil/build/1238/job/b2wdni5v8lx7nxmm

======================================================================
ERROR: psutil.tests.test_misc.TestWrapNumbers.test_cache_clear_public_apis
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\projects\psutil\psutil\tests\test_misc.py", line 607, in test_cache_clear_public_apis
    psutil.disk_io_counters()
  File "c:\projects\psutil\psutil\__init__.py", line 2094, in disk_io_counters
    return nt(*[sum(x) for x in zip(*rawdict.values())])
TypeError: __new__() missing 6 required positional arguments: 'read_count', 'write_count', 'read_bytes', 'write_bytes', 'read_time', and 'write_time'
@giampaolo giampaolo added the bug label May 12, 2017
@giampaolo
Copy link
Owner Author

Fixed in 2d32a26.

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

No branches or pull requests

1 participant