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