From ab3f409b4ed06b2e42c76c1026aace62f5b6e74e Mon Sep 17 00:00:00 2001 From: rxe Date: Tue, 10 Mar 2009 22:39:39 +0100 Subject: [PATCH] [svn r62832] unbound res on special files --HG-- branch : trunk --- py/test/collect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/test/collect.py b/py/test/collect.py index 46ab8b1e0..cc845bf1c 100644 --- a/py/test/collect.py +++ b/py/test/collect.py @@ -432,6 +432,8 @@ class Directory(FSCollector): res = self.consider_file(path) elif path.check(dir=1): res = self.consider_dir(path) + else: + res = None if isinstance(res, list): # throw out identical modules l = []