require with inverse

This commit is contained in:
2017-01-30 19:23:52 +01:00
parent 4b01eb6497
commit 2db15e193e
2 changed files with 51 additions and 2 deletions

View File

@ -651,6 +651,8 @@ class Settings(object):
" '{0}' with requirement on: "
"'{1}'").format(path, reqpath))
if option.impl_is_multi():
if index is None:
continue
idx = index
else:
idx = None
@ -683,8 +685,7 @@ class Settings(object):
raise value
else:
orig_value = value
if (not inverse and
value in expected or
if (not inverse and value in expected or
inverse and value not in expected):
if debug:
if isinstance(orig_value, PropertiesOptionError):