@@ -1754,7 +1754,7 @@ passed multiple times. The expected format is ``name=value``. For example::
17541754 [seq] matches any character in seq
17551755 [!seq] matches any char not in seq
17561756
1757- Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``, `` 'build' ``,
1757+ Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``,
17581758 ``'CVS' ``, ``'dist' ``, ``'node_modules' ``, ``'venv' ``, ``'{arch}' ``.
17591759 Setting a ``norecursedirs `` replaces the default. Here is an example of
17601760 how to avoid certain directories:
@@ -1776,6 +1776,9 @@ passed multiple times. The expected format is ``name=value``. For example::
17761776 *must * override ``norecursedirs `` in addition to using the
17771777 ``--collect-in-virtualenv `` flag.
17781778
1779+ Similarly, pytest will attempt to intelligently identify and igmore build
1780+ artifacts of a setuptools project unless ``--collect-in-build `` is used.
1781+
17791782
17801783.. confval :: python_classes
17811784
@@ -2163,6 +2166,8 @@ All the command-line flags can be obtained by running ``pytest --help``::
21632166 --keep-duplicates Keep duplicate tests
21642167 --collect-in-virtualenv
21652168 Don't ignore tests in a local virtualenv directory
2169+ --collect-in-build
2170+ Don't ignore tests in a local build directory
21662171 --import-mode={prepend,append,importlib}
21672172 Prepend/append to sys.path when importing test
21682173 modules and conftest files. Default: prepend.
0 commit comments