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 = []