Skip to content

Commit c838192

Browse files
authoredDec 29, 2022
Add faq entry about re-use of environments (#2789)
closes #2788
1 parent e0aed50 commit c838192

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 

‎docs/changelog/2788.doc.rst

+1
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

+17
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@ 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
128+
behavior was never supported, and possibly caused wrong results as illustrated in the following example.
129+
130+
.. code-block:: ini
131+
132+
[testenv]
133+
envdir = .tox/venv
134+
135+
[testenv:a]
136+
deps = pytest>7
137+
138+
[testenv:b]
139+
deps = pytest<7
140+
124141
New features in tox 4
125142
---------------------
126143
Here is a non-exhaustive list of these.

0 commit comments

Comments
 (0)