Skip to content

Commit 7fdd156

Browse files
committed
Add a comment explaining the inclusion check.
1 parent f892e83 commit 7fdd156

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tox/tox_env/package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def mark_active_run_env(self, run_env: RunToxEnv) -> None:
9898

9999
def teardown_env(self, conf: EnvConfigSet) -> None:
100100
if conf.name in self._envs:
101+
# conf.name (".tox") may be missing in self._envs in the case of an automatically provisioned environment
101102
self._envs.remove(conf.name)
102103
if len(self._envs) == 0:
103104
self._teardown()

0 commit comments

Comments
 (0)