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

cmdline() on Windows may raise OSError with unicode command args #1028

Closed
giampaolo opened this issue Apr 27, 2017 · 1 comment
Closed

cmdline() on Windows may raise OSError with unicode command args #1028

giampaolo opened this issue Apr 27, 2017 · 1 comment

Comments

@giampaolo
Copy link
Owner

From https://ci.appveyor.com/project/giampaolo/psutil/build/1138/job/8ra97nqi1s3je8d6:

======================================================================
ERROR: psutil.tests.test_process.TestInvalidUnicode.test_proc_cmdline
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\projects\psutil\psutil\tests\test_process.py", line 2080, in test_proc_cmdline
    p.cmdline()
  File "c:\projects\psutil\psutil\__init__.py", line 701, in cmdline
    return self._proc.cmdline()
  File "c:\projects\psutil\psutil\_pswindows.py", line 620, in wrapper
    return fun(self, *args, **kwargs)
  File "c:\projects\psutil\psutil\_pswindows.py", line 690, in cmdline
    ret = cext.proc_cmdline(self.pid)
OSError: [WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed
----------------------------------------------------------------------
Ran 408 tests in 9.873s
@giampaolo
Copy link
Owner Author

This is the same C code section as #875 so cmdline(), cwd() and environ()should all suffer the same issue. Closing this out as a duplicate.

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