Skip to content

Commit

Permalink
Avoid exception with tox.ini containing allowlist_externals
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored and hroncok committed Feb 18, 2022
1 parent fa84635 commit 1b0803e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tox_current_env/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def tox_configure(config):
if _plugin_active(config.option):
config.skipsdist = True
for testenv in config.envconfigs:
config.envconfigs[testenv].whitelist_externals = "*"
for entry in ['allowlist_externals', 'whitelist_externals']:
if getattr(config.envconfigs[testenv], entry, None):
setattr(config.envconfigs[testenv], entry, "*")
config.envconfigs[testenv].usedevelop = False

if (getattr(config.option.print_deps_to, "name", object()) ==
Expand Down

0 comments on commit 1b0803e

Please sign in to comment.