conf: fix edge case in TOML config validation
This commit is contained in:
parent
0034c349f2
commit
17cfd82728
1 changed files with 4 additions and 0 deletions
|
@ -459,6 +459,10 @@ class TomlConf:
|
||||||
if len(run) != 1:
|
if len(run) != 1:
|
||||||
raise ConfError(f"Invalid set of tests to run: {run!r}")
|
raise ConfError(f"Invalid set of tests to run: {run!r}")
|
||||||
|
|
||||||
|
# the "default" feature is always implicitly defined
|
||||||
|
if "default" not in features:
|
||||||
|
features.add("default")
|
||||||
|
|
||||||
if features_list := toml.get("features"):
|
if features_list := toml.get("features"):
|
||||||
if enable_list := features_list.get("enable"):
|
if enable_list := features_list.get("enable"):
|
||||||
for enabled in enable_list:
|
for enabled in enable_list:
|
||||||
|
|
Loading…
Reference in a new issue