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:
Jakub Libosvar 2017-06-20 18:02:45 +00:00
parent 7cb56a1628
commit 0c8dd7447a
1 changed files with 1 additions and 1 deletions

View File

@ -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()