summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-07-14 10:19:20 +0200
committerJürg Billeter <j@bitron.ch>2017-07-14 14:13:51 +0200
commit0fc743f19a95b789651108981570f6239d1c01c7 (patch)
tree20ab60e6afce8192ce30735f5ec079bf9f55c01a /tests/artifactcache
parenta37ff7d129b438c863d88998309007b000e4cb77 (diff)
downloadbuildstream-0fc743f19a95b789651108981570f6239d1c01c7.tar.gz
Move ArtifactError to exceptions.py
This avoids cyclic imports between element.py and artifactcache.py.
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/basics.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/artifactcache/basics.py b/tests/artifactcache/basics.py
index c7661820c..6fc8a8b7c 100644
--- a/tests/artifactcache/basics.py
+++ b/tests/artifactcache/basics.py
@@ -3,7 +3,8 @@ import pytest
import tempfile
from buildstream import Context, Project
-from buildstream._artifactcache import ArtifactCache, ArtifactError
+from buildstream.exceptions import _ArtifactError
+from buildstream._artifactcache import ArtifactCache
from buildstream._pipeline import Pipeline
DATA_DIR = os.path.join(
@@ -30,7 +31,7 @@ def test_empty_contains(pipeline):
# Test that we get an ArtifactError when trying to extract a nonexistent artifact
def test_empty_extract(pipeline):
- with pytest.raises(ArtifactError) as exc:
+ with pytest.raises(_ArtifactError) as exc:
pipeline.artifacts.extract(pipeline.target)