summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/bootstrap.py')
-rw-r--r--lib/spack/spack/test/bootstrap.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/spack/spack/test/bootstrap.py b/lib/spack/spack/test/bootstrap.py
index f779ff9b72..7eee7a21e3 100644
--- a/lib/spack/spack/test/bootstrap.py
+++ b/lib/spack/spack/test/bootstrap.py
@@ -67,18 +67,12 @@ def test_raising_exception_if_bootstrap_disabled(mutable_config):
def test_raising_exception_module_importable():
- with pytest.raises(
- ImportError,
- match='cannot bootstrap the "asdf" Python module',
- ):
+ with pytest.raises(ImportError, match='cannot bootstrap the "asdf" Python module'):
spack.bootstrap.core.ensure_module_importable_or_raise("asdf")
def test_raising_exception_executables_in_path():
- with pytest.raises(
- RuntimeError,
- match="cannot bootstrap any of the asdf, fdsa executables",
- ):
+ with pytest.raises(RuntimeError, match="cannot bootstrap any of the asdf, fdsa executables"):
spack.bootstrap.core.ensure_executables_in_path_or_raise(["asdf", "fdsa"], "python")