resolves py3.x compat issues in tests

pull/2356/head
sebres 2019-02-24 17:14:53 +01:00
parent fffeb7785c
commit f6468e753b
2 changed files with 2 additions and 2 deletions

View File

@ -717,7 +717,7 @@ class Server:
raise KeyError("unknown option %r" % o)
def getThreadOptions(self):
return {'stacksize': threading.stack_size() / 1024}
return {'stacksize': threading.stack_size() // 1024}
def setDatabase(self, filename):
# if not changed - nothing to do

View File

@ -479,7 +479,7 @@ class Fail2banClientTest(Fail2banClientServerBase):
# use once the stock configuration (to test starting also)
startparams = _start_params(tmp, True)
# test additional options:
_write_file(pjoin(tmp, "config", "fail2ban.conf"), "a",
_write_file(pjoin(tmp, "config", "fail2ban.local"), "w",
"[Thread]",
"stacksize = 32"
"",