Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwparent committed Apr 23, 2024
1 parent cdf6a6f commit b4df63f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/spack/spack/test/conftest.py
Expand Up @@ -767,11 +767,14 @@ def mutable_empty_config(tmpdir_factory, configuration_dir):
def mock_wsdk_externals(mock_configuration_scopes):
with spack.config.use_configuration(*mock_configuration_scopes) as config:
mock_pkgs = spack.util.spack_yaml.syaml_dict()

def make_external_entry(name):
external_pkg_items = spack.util.spack_yaml.syaml_dict([
("spec", f"{name}@10.0.20348 plat=x64"),
("prefix", "C:/Program Files (x86)/Windows Kits/10")
])
external_pkg_items = spack.util.spack_yaml.syaml_dict(
[
("spec", f"{name}@10.0.20348 plat=x64"),
("prefix", "C:/Program Files (x86)/Windows Kits/10"),
]
)
external_pkg = spack.util.spack_yaml.syaml_dict()
external_pkg["externals"] = [external_pkg_items]
external_pkg["buildable"] = False
Expand Down

0 comments on commit b4df63f

Please sign in to comment.