summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index c9db5e9fd..a9d430071 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1911,7 +1911,7 @@ class config(object):
test_use_changed = False
if "test" in self.features:
test_use_changed = \
- ("test" in iuse.split()) != \
+ bool(re.search(r'(^|\s)[-+]?test(\s|$)', iuse)) != \
("test" in self.get("PORTAGE_USE","").split())
if self.get("EBUILD_PHASE") or \
self._use_wildcards or \