mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
resolves py3.x compat issues in tests
This commit is contained in:
parent
fffeb7785c
commit
f6468e753b
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue