Merged in msabramo/pytest/norecursedirs_add_star_dot_egg (pull request #177)

Add *.egg to default for norecursedirs
This commit is contained in:
holger krekel 2014-07-03 16:51:17 +02:00
commit d0b048c86d
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ name_re = py.std.re.compile("^[a-zA-Z_]\w*$")
def pytest_addoption(parser):
parser.addini("norecursedirs", "directory patterns to avoid for recursion",
type="args", default=('.*', 'CVS', '_darcs', '{arch}'))
type="args", default=('.*', 'CVS', '_darcs', '{arch}', '*.egg'))
#parser.addini("dirpatterns",
# "patterns specifying possible locations of test files",
# type="linelist", default=["**/test_*.txt",

View File

@ -97,9 +97,9 @@ Builtin configuration file options
[seq] matches any character in seq
[!seq] matches any char not in seq
Default patterns are ``'.*', 'CVS', '_darcs', '{arch}'``. Setting a ``norecursedirs``
replaces the default. Here is an example of how to avoid
certain directories::
Default patterns are ``'.*', 'CVS', '_darcs', '{arch}', '*.egg'``.
Setting a ``norecursedirs`` replaces the default. Here is an example of
how to avoid certain directories::
# content of setup.cfg
[pytest]