We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df48a67 commit 78a4970Copy full SHA for 78a4970
src/tox/session/env_select.py
@@ -242,6 +242,10 @@ def _finalize_config(self) -> None:
242
243
def _build_run_env(self, name: str) -> RunToxEnv | None:
244
if self._provision is not None and self._provision[0] is False and name == self._provision[1]:
245
+ # ignore provision env unless this is a provision run
246
+ return None
247
+ if self._provision is not None and self._provision[0] and name != self._provision[1]:
248
+ # ignore other envs when this is a provision run
249
return None
250
env_conf = self._state.conf.get_env(name, package=False)
251
if self._provision is not None and self._provision[1] == name:
0 commit comments