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

[macOS] psutil.tests.test_osx.TestSystemAPIs.test_disks is failing on macOS 12 #2147

Closed
mayeut opened this issue Sep 25, 2022 · 0 comments · Fixed by #2152
Closed

[macOS] psutil.tests.test_osx.TestSystemAPIs.test_disks is failing on macOS 12 #2147

mayeut opened this issue Sep 25, 2022 · 0 comments · Fixed by #2152

Comments

@mayeut
Copy link
Contributor

mayeut commented Sep 25, 2022

Summary

  • OS: macOS
  • Architecture: 64bit, ARM
  • Psutil version: build from master 69b572e
  • Python version: Python 3.10.7
  • Type: tests

Description

When running tests on macOS 12, psutil.tests.test_osx.TestSystemAPIs.test_disks is failing (seen on my own laptop - arm64 -, reproducible on GitHub Actions macOS-12 runners, CirrusCI macos-monterey-xcode arm64 runners).

It seems the behavior of the statvfs changed for APFS shared volumes. The psutil reported "used" bytes is now the same for all shared volumes which is not the case of df.

Apple has patched df in macOS 12 to return the correct used bytes for a given volume.

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

Successfully merging a pull request may close this issue.

1 participant