summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2024-11-02 01:36:05 -0700
committerGitHub <noreply@github.com>2024-11-02 09:36:05 +0100
commitb8461f3d2dc72007c63fb24af5694cee8b5791bc (patch)
tree1dd9ac7aecc3898b5bf5d11a4f9130058acc1e8b /lib
parent133895e7852a03ffeac473d16949c92df90e65ee (diff)
downloadspack-b8461f3d2dc72007c63fb24af5694cee8b5791bc.tar.gz
spack-b8461f3d2dc72007c63fb24af5694cee8b5791bc.tar.bz2
spack-b8461f3d2dc72007c63fb24af5694cee8b5791bc.tar.xz
spack-b8461f3d2dc72007c63fb24af5694cee8b5791bc.zip
Remove ignored config:install_missing_compilers from unit tests (#47357)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/installer.py34
1 files changed, 16 insertions, 18 deletions
diff --git a/lib/spack/spack/test/installer.py b/lib/spack/spack/test/installer.py
index 8df6a1a6ea..38bc160982 100644
--- a/lib/spack/spack/test/installer.py
+++ b/lib/spack/spack/test/installer.py
@@ -644,13 +644,12 @@ def test_prepare_for_install_on_installed(install_mockery, monkeypatch):
def test_installer_init_requests(install_mockery):
"""Test of installer initial requests."""
spec_name = "dependent-install"
- with spack.config.override("config:install_missing_compilers", True):
- installer = create_installer([spec_name], {})
+ installer = create_installer([spec_name], {})
- # There is only one explicit request in this case
- assert len(installer.build_requests) == 1
- request = installer.build_requests[0]
- assert request.pkg.name == spec_name
+ # There is only one explicit request in this case
+ assert len(installer.build_requests) == 1
+ request = installer.build_requests[0]
+ assert request.pkg.name == spec_name
@pytest.mark.parametrize("transitive", [True, False])
@@ -743,21 +742,20 @@ def test_install_task_requeue_build_specs(install_mockery, monkeypatch, capfd):
# Set the configuration to ensure _requeue_with_build_spec_tasks actually
# does something.
- with spack.config.override("config:install_missing_compilers", True):
- installer = create_installer(["depb"], {})
- installer._init_queue()
- request = installer.build_requests[0]
- task = create_build_task(request.pkg)
+ installer = create_installer(["depb"], {})
+ installer._init_queue()
+ request = installer.build_requests[0]
+ task = create_build_task(request.pkg)
- # Drop one of the specs so its task is missing before _install_task
- popped_task = installer._pop_task()
- assert inst.package_id(popped_task.pkg.spec) not in installer.build_tasks
+ # Drop one of the specs so its task is missing before _install_task
+ popped_task = installer._pop_task()
+ assert inst.package_id(popped_task.pkg.spec) not in installer.build_tasks
- monkeypatch.setattr(task, "execute", _missing)
- installer._install_task(task, None)
+ monkeypatch.setattr(task, "execute", _missing)
+ installer._install_task(task, None)
- # Ensure the dropped task/spec was added back by _install_task
- assert inst.package_id(popped_task.pkg.spec) in installer.build_tasks
+ # Ensure the dropped task/spec was added back by _install_task
+ assert inst.package_id(popped_task.pkg.spec) in installer.build_tasks
def test_release_lock_write_n_exception(install_mockery, tmpdir, capsys):