From b644d2d73ffa2d1e468b148004f9fb3436efd507 Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 11 Jan 2018 20:23:22 +0100 Subject: [PATCH] should fix sporadic coverage decrease (don't cover "return", because too sporadic to get idle in pyinotify-callback); --- fail2ban/server/filterpyinotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/server/filterpyinotify.py b/fail2ban/server/filterpyinotify.py index e59c203e..d63d1de6 100644 --- a/fail2ban/server/filterpyinotify.py +++ b/fail2ban/server/filterpyinotify.py @@ -123,7 +123,7 @@ class FilterPyinotify(FileFilter): self._addPending(path, event) return # do nothing if idle: - if self.idle: + if self.idle: # pragma: no cover (too sporadic to get idle in callback) return # be sure we process a file: if not isWF: