Commit 593bd165 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kirill Smelkov

tests: fix ZEO fixture for ZEO < 5

ZEOConfig started to accept `log` argument in ZEO 5, see commit
https://github.com/zopefoundation/ZEO/commit/6e13bbe85

/reviewed-by @kirr
/reviewed-at !31
parent 36cba871
......@@ -142,7 +142,11 @@ class TestZEOSrv(TestZSrv):
self.tmpd = mkdtemp('', 'test_zeo.')
self.log = '%s/zeo.log' % self.tmpd
port = self.zeo_forker.get_port()
zconf = self.zeo_forker.ZEOConfig(('', port), log=self.log)
if self.z5:
zconf = self.zeo_forker.ZEOConfig(('', port), log=self.log)
else:
zconf = self.zeo_forker.ZEOConfig(('', port))
zconf.logpath = self.log
_ = self.zeo_forker.start_zeo_server(path='%s/1.fs' % self.tmpd, zeo_conf=zconf, port=port)
if self.z5:
self.addr, self.stop = _
......
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