String to byte conversion should provide the encoding type

Change-Id: Id988cab87d32d5721cd91152df194fbb6fa703c5
Closes-Bug: #1887385
(cherry picked from commit 7a56b8f3bc)
This commit is contained in:
Rodolfo Alonso Hernandez 2020-07-13 13:25:33 +00:00
parent 20b9e7759f
commit 18f019984a
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class TestWsgiServer(TestNeutronServer):
# Memorize a port that was chosen for the service # Memorize a port that was chosen for the service
self.port = server.port self.port = server.port
os.write(self.pipeout, bytes(self.port)) os.write(self.pipeout, bytes(str(self.port), 'utf-8'))
server.wait() server.wait()