fix test
This commit is contained in:
parent
fb690967e1
commit
1fcf707096
@ -247,6 +247,7 @@ def test_real_name(self, module_name, pkg_name, mock_test_cache, tmp_path):
|
|||||||
used to import the Python module.
|
used to import the Python module.
|
||||||
"""
|
"""
|
||||||
path, _ = spack.repo.create_repo(str(tmp_path), package_api=(1, 0))
|
path, _ = spack.repo.create_repo(str(tmp_path), package_api=(1, 0))
|
||||||
|
if pkg_name is not None:
|
||||||
pkg_path = pathlib.Path(path) / "packages" / pkg_name / "package.py"
|
pkg_path = pathlib.Path(path) / "packages" / pkg_name / "package.py"
|
||||||
pkg_path.parent.mkdir(parents=True)
|
pkg_path.parent.mkdir(parents=True)
|
||||||
pkg_path.write_text("")
|
pkg_path.write_text("")
|
||||||
|
Loading…
Reference in New Issue
Block a user