diff options
Diffstat (limited to 'lib/spack/spack/test/gcs_fetch.py')
-rw-r--r-- | lib/spack/spack/test/gcs_fetch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/test/gcs_fetch.py b/lib/spack/spack/test/gcs_fetch.py index 90657d4693..a253d9e0e8 100644 --- a/lib/spack/spack/test/gcs_fetch.py +++ b/lib/spack/spack/test/gcs_fetch.py @@ -10,6 +10,7 @@ import pytest import spack.config import spack.fetch_strategy import spack.stage +from spack.util.web import FetchError @pytest.mark.parametrize("_fetch_method", ["curl", "urllib"]) @@ -32,7 +33,7 @@ def test_gcsfetchstrategy_bad_url(tmpdir, _fetch_method): with spack.stage.Stage(fetcher, path=testpath) as stage: assert stage is not None assert fetcher.archive_file is None - with pytest.raises(spack.fetch_strategy.FetchError): + with pytest.raises(FetchError): fetcher.fetch() |