Merge "String to byte conversion should provide the encoding type" into stable/stein

This commit is contained in:
Zuul 2020-09-04 16:56:56 +00:00 committed by Gerrit Code Review
commit 59f8fd86ce
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import mock
from neutron_lib import worker as neutron_worker
from oslo_config import cfg
import psutil
import six
from neutron.common import utils
from neutron import manager
@ -221,7 +222,7 @@ class TestWsgiServer(TestNeutronServer):
# Memorize a port that was chosen for the service
self.port = server.port
os.write(self.pipeout, bytes(self.port))
os.write(self.pipeout, six.b(str(self.port)))
server.wait()