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

This commit is contained in:
Zuul 2020-08-20 04:59:27 +00:00 committed by Gerrit Code Review
commit 8ff90c2bd4
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
@ -228,7 +229,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()