diff options
author | Thomas Coldrick <thomas.coldrick@codethink.co.uk> | 2020-01-17 15:22:06 +0000 |
---|---|---|
committer | Thomas Coldrick <thomas.coldrick@codethink.co.uk> | 2020-01-23 16:45:35 +0000 |
commit | 8aa7e8b6c2ca418aafddf4ce308a9d0ff56cf467 (patch) | |
tree | 01fef02fe2ca9634b1ede36d5b96fab66a6532f5 /src/buildstream/testing/_sourcetests | |
parent | bf5f20704831f58d7ced04e960ca8f7b97c6736c (diff) | |
download | buildstream-8aa7e8b6c2ca418aafddf4ce308a9d0ff56cf467.tar.gz |
exceptions: Expose ErrorDomain, ErrorLoadReason
Plugin tests are already accessing this API, but using imports from
private modules. For motivation for this to be exposed publicly, note
that ErrorDomain is an argument for most things in runcli.py, and
LoadErrorReason may be another.
Diffstat (limited to 'src/buildstream/testing/_sourcetests')
-rw-r--r-- | src/buildstream/testing/_sourcetests/mirror.py | 2 | ||||
-rw-r--r-- | src/buildstream/testing/_sourcetests/track.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/testing/_sourcetests/mirror.py b/src/buildstream/testing/_sourcetests/mirror.py index 3ff3fb981..de05b894c 100644 --- a/src/buildstream/testing/_sourcetests/mirror.py +++ b/src/buildstream/testing/_sourcetests/mirror.py @@ -23,7 +23,7 @@ import os import pytest from buildstream import _yaml -from buildstream._exceptions import ErrorDomain +from buildstream.exceptions import ErrorDomain from .._utils import generate_junction from .. import create_repo from .. import cli # pylint: disable=unused-import diff --git a/src/buildstream/testing/_sourcetests/track.py b/src/buildstream/testing/_sourcetests/track.py index 623045cd9..ecb508b1a 100644 --- a/src/buildstream/testing/_sourcetests/track.py +++ b/src/buildstream/testing/_sourcetests/track.py @@ -23,7 +23,7 @@ import os import pytest from buildstream import _yaml -from buildstream._exceptions import ErrorDomain +from buildstream.exceptions import ErrorDomain from .._utils import generate_junction from .. import create_repo from .. import cli # pylint: disable=unused-import |