gecko-dev/testing/mozbase/mozprocess
Andrew Halberstadt cb2eb80652 Bug 1585702 - [mozprocess] Fix "Embedded null character" error in Windows with Python 3, r=gbrown
This works around a bug in Python:
https://bugs.python.org/issue32745

Null characters aren't allowed in 'c_wchar_p' types anymore, but we can get around
the issue by allocating a buffer in memory and casting it after the fact. This was
discovered via trial and error and I'm not really sure why it works.. But it does.

This also enables the tests under Python 3 on Windows (which thankfully all
seem to pass).

Differential Revision: https://phabricator.services.mozilla.com/D48113

--HG--
extra : moz-landing-system : lando
2019-10-04 17:46:38 +00:00
..
mozprocess Bug 1585702 - [mozprocess] Fix "Embedded null character" error in Windows with Python 3, r=gbrown 2019-10-04 17:46:38 +00:00
tests Bug 1585702 - [mozprocess] Fix "Embedded null character" error in Windows with Python 3, r=gbrown 2019-10-04 17:46:38 +00:00
setup.cfg Bug 1428713 [mozprocess] Add support for Python 3 r=ahal 2019-02-06 09:13:44 +00:00
setup.py Bug 1428713 [mozprocess] Add support for Python 3 r=ahal 2019-02-06 09:13:44 +00:00