@@ -1720,7 +1720,7 @@ passed multiple times. The expected format is ``name=value``. For example::
17201720 [seq] matches any character in seq
17211721 [!seq] matches any char not in seq
17221722
1723- Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``, `` 'build' ``,
1723+ Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``,
17241724 ``'CVS' ``, ``'dist' ``, ``'node_modules' ``, ``'venv' ``, ``'{arch}' ``.
17251725 Setting a ``norecursedirs `` replaces the default. Here is an example of
17261726 how to avoid certain directories:
@@ -1742,6 +1742,9 @@ passed multiple times. The expected format is ``name=value``. For example::
17421742 *must * override ``norecursedirs `` in addition to using the
17431743 ``--collect-in-virtualenv `` flag.
17441744
1745+ Similarly, pytest will attempt to intelligently identify and igmore build
1746+ artifacts of a setuptools project unless ``--collect-in-build `` is used.
1747+
17451748
17461749.. confval :: python_classes
17471750
@@ -2132,6 +2135,8 @@ All the command-line flags can be obtained by running ``pytest --help``::
21322135 --keep-duplicates Keep duplicate tests
21332136 --collect-in-virtualenv
21342137 Don't ignore tests in a local virtualenv directory
2138+ --collect-in-build
2139+ Don't ignore tests in a local build directory
21352140 --import-mode={prepend,append,importlib}
21362141 Prepend/append to sys.path when importing test
21372142 modules and conftest files. Default: prepend.
0 commit comments