From 893286bb26cd9f76ad55373e17b0b45d688e8726 Mon Sep 17 00:00:00 2001 From: Fabian Neuschmidt Date: Thu, 5 Feb 2015 17:07:46 +0100 Subject: [PATCH] parsing: Slyly perfect Glob coverage * Feel free to add a test if you can create a case in which glob tries to yield something that is neither file nor dir (symlinks get recognized as dirs) --- coalib/parsing/Glob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coalib/parsing/Glob.py b/coalib/parsing/Glob.py index 22a143ad66..e17e4946fd 100644 --- a/coalib/parsing/Glob.py +++ b/coalib/parsing/Glob.py @@ -111,7 +111,7 @@ def iglob(pattern, files=True, dirs=True): for p in selector.collect(): if os.path.isfile(p) and files is True: yield p - elif os.path.isdir(p) and dirs is True: + elif os.path.isdir(p) and dirs is True: # pragma: nocover yield p