]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make sure we return unicode strings for process output
authorIhar Hrachyshka <ihrachys@redhat.com>
Wed, 11 Nov 2015 12:59:22 +0000 (13:59 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Fri, 20 Nov 2015 15:49:51 +0000 (16:49 +0100)
commite30d8cead155c119ee2ffde074312591f7938fb0
tree5c590f6b217057f419baa6072281f4cec400bbf2
parenta9a205e002168b278e5b427e437afb98d1260d9b
Make sure we return unicode strings for process output

Process output is supposed to be represented with lines, so we should
put Python strings in the queue (not bytes). Just in case, we do it only
for Python 3 environment.

To fix that, we reuse code from utils.execute() linux/windows
implementations.

This fixes the TestAsyncProcess.test_async_process_respawns functional
test for Python 3 environment.

Related-Bug: #1515118
Change-Id: I9efec2290003add44909aab33a0026372a580016
neutron/agent/linux/async_process.py
neutron/agent/linux/utils.py
neutron/agent/windows/utils.py
neutron/common/utils.py
neutron/tests/common/helpers.py
neutron/tests/functional/agent/linux/test_async_process.py
neutron/tests/unit/agent/linux/test_utils.py
neutron/tests/unit/common/test_utils.py
neutron/tests/unit/test_wsgi.py