Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add faq entry about re-use of environments #2789

Merged
merged 1 commit into from Dec 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog/2788.doc.rst
@@ -0,0 +1 @@
Add faq entry about re-use of environments - by :user:`jugmac00`.
17 changes: 17 additions & 0 deletions docs/faq.rst
Expand Up @@ -121,6 +121,23 @@ tox 4 -- output changes
- We now use colors for reporting, to help make the output easier to read for humans. This can be disabled via the
``TERM=dumb`` or ``NO_COLOR=1`` environment variables, or the ``--colored no`` CLI argument.

tox 4 -- re-use of environments
+++++++++++++++++++++++++++++++

- It is no longer possible to re-use environments. While this might have been possible with tox version 3, this
behavior was never supported, and possibly caused wrong results as illustrated in the following example.

.. code-block:: ini

[testenv]
envdir = .tox/venv

[testenv:a]
deps = pytest>7

[testenv:b]
deps = pytest<7

New features in tox 4
---------------------
Here is a non-exhaustive list of these.
Expand Down