Skip to content

Commit 7321be5

Browse files
committed
Add faq entry about re-use of environments
1 parent e0aed50 commit 7321be5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/changelog/2788.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add faq entry about re-use of environments - by :user:`jugmac00`.

docs/faq.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ tox 4 -- output changes
121121
- We now use colors for reporting, to help make the output easier to read for humans. This can be disabled via the
122122
``TERM=dumb`` or ``NO_COLOR=1`` environment variables, or the ``--colored no`` CLI argument.
123123

124+
tox 4 -- re-use of environments
125+
+++++++++++++++++++++++++++++++
126+
127+
- 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.
128+
129+
.. code-block:: ini
130+
131+
[testenv]
132+
envdir = .tox/venv
133+
134+
[testenv:a]
135+
deps = pytest>7
136+
137+
[testenv:b]
138+
deps = pytest<7
139+
124140
New features in tox 4
125141
---------------------
126142
Here is a non-exhaustive list of these.

0 commit comments

Comments
 (0)