functional: Don't write strings to pipe
Python 3 doesn't support writing strings to descriptors. Write bytes instead. Change-Id: Ie732d00acc67c429d9f714bcfc116554fb523d36
This commit is contained in:
parent
7cb56a1628
commit
0c8dd7447a
@ -213,7 +213,7 @@ class TestWsgiServer(TestNeutronServer):
|
||||
|
||||
# Memorize a port that was chosen for the service
|
||||
self.port = server.port
|
||||
os.write(self.pipeout, str(self.port))
|
||||
os.write(self.pipeout, bytes(self.port))
|
||||
|
||||
server.wait()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user