From b6f069f4c31e97bdd452e26b2e5ab461e0e6ef92 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Thu, 3 Jul 2014 07:49:03 -0700 Subject: [PATCH] Add *.egg to default for norecursedirs --HG-- branch : norecursedirs_add_star_dot_egg --- _pytest/main.py | 2 +- doc/en/customize.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_pytest/main.py b/_pytest/main.py index 246470f01..0fd4cb029 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -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", diff --git a/doc/en/customize.txt b/doc/en/customize.txt index 0e7ddfdf9..ac263b1fa 100644 --- a/doc/en/customize.txt +++ b/doc/en/customize.txt @@ -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]