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

[Windows] psutil.disk_usage() can't handle unicode paths #763

Closed
giampaolo opened this issue Feb 9, 2016 · 2 comments
Closed

[Windows] psutil.disk_usage() can't handle unicode paths #763

giampaolo opened this issue Feb 9, 2016 · 2 comments

Comments

@giampaolo
Copy link
Owner

https://ci.appveyor.com/project/giampaolo/psutil/build/473/job/fk8t97nk4bt7i9a0

======================================================================
ERROR: test_disk_usage (test_process.TestUnicode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\psutil\psutil\tests\test_process.py", line 1894, in test_disk_usage
    psutil.disk_usage(self.uexe)
  File "c:\projects\psutil\psutil\__init__.py", line 1765, in disk_usage
    return _psplatform.disk_usage(path)
  File "c:\projects\psutil\psutil\_pswindows.py", line 164, in disk_usage
    total, free = cext.disk_usage(path)
WindowsError: [Error 267] The directory name is invalid
@giampaolo
Copy link
Owner Author

shutil.disk_usage() on python 3 has the same problem: http://bugs.python.org/issue26330

@giampaolo
Copy link
Owner Author

It turns out there's no real issue here as per further discussion in http://bugs.python.org/issue26330. Closing.

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