Module: check_mk
Branch: master
Commit: 25be559f26593b57d81b04100d6765bc22213733
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25be559f26593b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 4 15:32:40 2019 +0200
Fixed broken test which should find left over debug code
Change-Id: Ie3db511a4dd471821fe70886ef62e7069aa75cf4
---
tests/git/test_find_debug_print.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/git/test_find_debug_print.py b/tests/git/test_find_debug_print.py
index 733bda6..3dcc45b 100644
--- a/tests/git/test_find_debug_print.py
+++ b/tests/git/test_find_debug_print.py
@@ -38,7 +38,7 @@ def test_find_debug_code():
scanned += 1
for filename in filenames:
file_path = "%s/%s" % (dirpath, filename)
- if [folder in file_path for folder in exclude_folders]:
+ if [folder for folder in exclude_folders if folder in file_path]:
continue
for nr, line in enumerate(open(file_path)):