summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-09-01 11:58:29 +0200
committerGitHub <noreply@github.com>2021-09-01 11:58:29 +0200
commit4c23059017b0d171cf1e4345788881f9385af988 (patch)
tree9dcab1599defb2c1b6040a1332dd64f12f9c3797 /lib
parentab37ac95bf9dbbe77f71654e903c85bae267c76a (diff)
downloadspack-4c23059017b0d171cf1e4345788881f9385af988.tar.gz
spack-4c23059017b0d171cf1e4345788881f9385af988.tar.bz2
spack-4c23059017b0d171cf1e4345788881f9385af988.tar.xz
spack-4c23059017b0d171cf1e4345788881f9385af988.zip
Speed-up two unit tests by using builtin.mock instead of builtin (#25544)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/cmd/install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/test/cmd/install.py b/lib/spack/spack/test/cmd/install.py
index 6a84b97a8f..7735ebf506 100644
--- a/lib/spack/spack/test/cmd/install.py
+++ b/lib/spack/spack/test/cmd/install.py
@@ -311,7 +311,7 @@ def test_install_invalid_spec(invalid_spec):
install(invalid_spec)
-@pytest.mark.usefixtures('noop_install', 'config')
+@pytest.mark.usefixtures('noop_install', 'mock_packages', 'config')
@pytest.mark.parametrize('spec,concretize,error_code', [
(Spec('mpi'), False, 1),
(Spec('mpi'), True, 0),
@@ -415,7 +415,7 @@ def test_junit_output_with_errors(
assert 'error message="{0}"'.format(msg) in content
-@pytest.mark.usefixtures('noop_install', 'config')
+@pytest.mark.usefixtures('noop_install', 'mock_packages', 'config')
@pytest.mark.parametrize('clispecs,filespecs', [
[[], ['mpi']],
[[], ['mpi', 'boost']],