From fa48190fed81c28e393c162ef7189b7cc1f62332 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Thu, 3 Jul 2014 18:34:23 +0800 Subject: Fix undefined env check --- tox/_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox/_config.py b/tox/_config.py index 1dadc8a..0d9f8af 100644 --- a/tox/_config.py +++ b/tox/_config.py @@ -291,7 +291,7 @@ class parseini: for name in all_envs: section = testenvprefix + name factors = set(name.split('-')) - if section in self._cfg or factors & known_factors: + if section in self._cfg or factors <= known_factors: config.envconfigs[name] = \ self._makeenvconfig(name, section, reader._subs, config) @@ -305,7 +305,7 @@ class parseini: factors = set() if section in self._cfg: for _, value in self._cfg[section].items(): - factors.update(re.findall(r'^(!)?(\w+)\:\s+(.+)', value)) + factors.update(re.findall(r'^!?(\w+)\:\s+', value, re.M)) return factors def _makeenvconfig(self, name, section, subs, config): -- cgit v1.2.1