Add *.egg to default for norecursedirs
--HG-- branch : norecursedirs_add_star_dot_egg
This commit is contained in:
parent
6da9a087f8
commit
b6f069f4c3
|
@ -23,7 +23,7 @@ name_re = py.std.re.compile("^[a-zA-Z_]\w*$")
|
||||||
|
|
||||||
def pytest_addoption(parser):
|
def pytest_addoption(parser):
|
||||||
parser.addini("norecursedirs", "directory patterns to avoid for recursion",
|
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",
|
#parser.addini("dirpatterns",
|
||||||
# "patterns specifying possible locations of test files",
|
# "patterns specifying possible locations of test files",
|
||||||
# type="linelist", default=["**/test_*.txt",
|
# type="linelist", default=["**/test_*.txt",
|
||||||
|
|
|
@ -97,9 +97,9 @@ Builtin configuration file options
|
||||||
[seq] matches any character in seq
|
[seq] matches any character in seq
|
||||||
[!seq] matches any char not in seq
|
[!seq] matches any char not in seq
|
||||||
|
|
||||||
Default patterns are ``'.*', 'CVS', '_darcs', '{arch}'``. Setting a ``norecursedirs``
|
Default patterns are ``'.*', 'CVS', '_darcs', '{arch}', '*.egg'``.
|
||||||
replaces the default. Here is an example of how to avoid
|
Setting a ``norecursedirs`` replaces the default. Here is an example of
|
||||||
certain directories::
|
how to avoid certain directories::
|
||||||
|
|
||||||
# content of setup.cfg
|
# content of setup.cfg
|
||||||
[pytest]
|
[pytest]
|
||||||
|
|
Loading…
Reference in New Issue