forked from tox-dev/tox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't attempt to parse dicts if not replacing
When reading in the config and processing dict content we were splitting on = assuming we would always have key = value pairs. However in the case where we don't want to replace because the testenv will not be used this can result in ValueErrors as substitution variables are not string key = value pairs. Avoid all this by only attempting to process dict key = values if we are replacing in the first place. Otherwise the content isn't needed and we just return the default value or empty dict. This should fix tox-dev#595
- Loading branch information
Showing
2 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters