From b7e47d0e3c9094054a1f190a92c72d840893fb00 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 18 Mar 2009 17:25:58 +0100 Subject: [PATCH] [svn r63046] change a few comments --HG-- branch : trunk --- py/test/plugin/pytest_default.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/py/test/plugin/pytest_default.py b/py/test/plugin/pytest_default.py index ab9d3e268..2b90a8c1b 100644 --- a/py/test/plugin/pytest_default.py +++ b/py/test/plugin/pytest_default.py @@ -16,15 +16,18 @@ class DefaultPlugin: return parent.Module(path, parent=parent) def pytest_collect_directory(self, path, parent): + #excludelist = parent._config.getvalue_pathlist('dir_exclude', path) + #if excludelist and path in excludelist: + # return if not parent.recfilter(path): - # check if cmdline specified this dir or a subdir + # check if cmdline specified this dir or a subdir directly for arg in parent.config.args: if path == arg or arg.relto(path): break else: return - # not use parent.Directory here as we want - # dir/conftest.py to be able to + # not use parent.Directory here as we generally + # want dir/conftest.py to be able to # define Directory(dir) already Directory = parent.config.getvalue('Directory', path) return Directory(path, parent=parent)