style fix
This commit is contained in:
committed by
Gregory Becker
parent
4bc2d12a68
commit
469401d4a1
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user