Update reference.rst

This commit is contained in:
Zach Snicker 2024-06-28 22:42:46 +05:30
parent 4a39513c63
commit 3c64f1110c
1 changed files with 7 additions and 7 deletions

View File

@ -1702,13 +1702,13 @@ passed multiple times. The expected format is ``name=value``. For example::
This would tell ``pytest`` to not look into typical subversion or This would tell ``pytest`` to not look into typical subversion or
sphinx-build directories or into any ``tmp`` prefixed directory. sphinx-build directories or into any ``tmp`` prefixed directory.
Additionally, ``pytest`` will attempt to intelligently identify and ignore a Additionally, ``pytest`` will attempt to intelligently identify and ignore
virtualenv by the presence of an activation script. Any directory deemed to a virtualenv. Any directory deemed to be the root of a virtual environment
be the root of a virtual environment will not be considered during test will not be considered during test collection unless
collection unless ``--collect-in-virtualenv`` is given. Note also that ``--collect-in-virtualenv`` is given. Note also that ``norecursedirs``
``norecursedirs`` takes precedence over ``--collect-in-virtualenv``; e.g. if takes precedence over ``--collect-in-virtualenv``; e.g. if you intend to
you intend to run tests in a virtualenv with a base directory that matches run tests in a virtualenv with a base directory that matches ``'.*'`` you
``'.*'`` you *must* override ``norecursedirs`` in addition to using the *must* override ``norecursedirs`` in addition to using the
``--collect-in-virtualenv`` flag. ``--collect-in-virtualenv`` flag.