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:
parent
20b9e7759f
commit
18f019984a
|
@ -228,7 +228,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, bytes(str(self.port), 'utf-8'))
|
||||
|
||||
server.wait()
|
||||
|
||||
|
|
Loading…
Reference in New Issue