This commit is contained in:
Harmen Stoppels 2025-05-14 16:46:41 +02:00
parent fb690967e1
commit 1fcf707096

View File

@ -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("")