diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/installer.py | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/spack/spack/test/installer.py b/lib/spack/spack/test/installer.py index bc1398afff..37d1de78b0 100644 --- a/lib/spack/spack/test/installer.py +++ b/lib/spack/spack/test/installer.py @@ -231,32 +231,12 @@ def test_process_binary_cache_tarball_tar(install_mockery, monkeypatch, capfd): def test_try_install_from_binary_cache(install_mockery, mock_packages, monkeypatch): - """Tests SystemExit path for_try_install_from_binary_cache. - - This test does not make sense. We tell spack there is a mirror - with a binary for this spec and then expect it to die because there - are no mirrors configured.""" - # def _mirrors_for_spec(spec, full_hash_match=False): - # spec = spack.spec.Spec('mpi').concretized() - # return [{ - # 'mirror_url': 'notused', - # 'spec': spec, - # }] - + """Test return false when no match exists in the mirror""" spec = spack.spec.Spec('mpich') spec.concretize() - - # monkeypatch.setattr( - # spack.binary_distribution, 'get_mirrors_for_spec', _mirrors_for_spec) - - # with pytest.raises(SystemExit): - # inst._try_install_from_binary_cache(spec.package, False, False) result = inst._try_install_from_binary_cache(spec.package, False, False) assert(not result) - # captured = capsys.readouterr() - # assert 'add a spack mirror to allow download' in str(captured) - def test_installer_repr(install_mockery): const_arg = installer_args(['trivial-install-test-package'], {}) |