summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2022-03-03 02:19:57 -0700
committerGitHub <noreply@github.com>2022-03-03 10:19:57 +0100
commitc72735229f1db32c9eb29c65aa99b0124ae7b604 (patch)
tree2ea84606d863799b2af089f0253ca7daaedce166 /lib
parent79c0f631de063c0517925cc7639c50d94cddead0 (diff)
downloadspack-c72735229f1db32c9eb29c65aa99b0124ae7b604.tar.gz
spack-c72735229f1db32c9eb29c65aa99b0124ae7b604.tar.bz2
spack-c72735229f1db32c9eb29c65aa99b0124ae7b604.tar.xz
spack-c72735229f1db32c9eb29c65aa99b0124ae7b604.zip
test/installer.py: remove commented code and inaccurate docstring (#29305)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/installer.py22
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'], {})