style fix

This commit is contained in:
Peter Josef Scheibel
2022-10-21 14:38:59 -06:00
committed by Gregory Becker
parent 4bc2d12a68
commit 469401d4a1
2 changed files with 10 additions and 11 deletions

View File

@@ -33,8 +33,6 @@
from llnl.util.compat import Mapping
from llnl.util.filesystem import working_dir
import spack.util.spack_yaml as syaml
import ruamel.yaml as ryaml
import spack.caches
import spack.config
import spack.error
@@ -1386,7 +1384,7 @@ def get_pkg_class(self, pkg_name):
elif t == "float":
v = float(v)
elif t == "boolean":
v = ryaml.load(v)
v = yaml.load(v)
setattr(cls, key, v)
else:
setattr(cls, key, val)

View File

@@ -202,14 +202,15 @@ def test_config_set_package_property(self, mutable_mock_repo):
update_packages(
"mpileaks",
"package_attributes",
{"x": {
"value": "1",
"type": "int",
},
"y": {
"value": "true",
"type": "boolean",
}
{
"x": {
"value": "1",
"type": "int",
},
"y": {
"value": "true",
"type": "boolean",
},
},
)
spec = concretize("mpileaks")