Commit f0bda6d2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

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

parent 3533453a
...@@ -1496,7 +1496,7 @@ class ZEOServerTestCase(ERP5TypeTestCase): ...@@ -1496,7 +1496,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