mirror of https://github.com/fail2ban/fail2ban
resolves py3.x compat issues in tests
parent
fffeb7785c
commit
f6468e753b
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
"",
|
||||
|
|
Loading…
Reference in New Issue