Commit 95f6d75f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: cast to bytes in write().

parent 8b06ab9e
...@@ -1486,7 +1486,7 @@ class ZEOServerTestCase(ERP5TypeTestCase): ...@@ -1486,7 +1486,7 @@ class ZEOServerTestCase(ERP5TypeTestCase):
if e[0] != errno.EADDRINUSE: if e[0] != errno.EADDRINUSE:
raise raise
if zeo_client: if zeo_client:
os.write(zeo_client, repr(host_port)) os.write(zeo_client, str2bytes(repr(host_port)))
os.close(zeo_client) os.close(zeo_client)
ZopeTestCase._print("\nZEO Storage started at %s:%s ... " % host_port) ZopeTestCase._print("\nZEO Storage started at %s:%s ... " % host_port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment