diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 18:15:33 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 18:15:33 +0900 |
commit | 27aac095bdb6b0025c989572789a1f98d8d89b3c (patch) | |
tree | 0ca7572b7db4b8b5fcb47e08fda41e22bbe41990 /tests/plugins | |
parent | 0defb35c0334d78e48bcf21ec6b106b67761e1bc (diff) | |
download | buildstream-27aac095bdb6b0025c989572789a1f98d8d89b3c.tar.gz |
Refactoring: Move exceptions module to be private
Hide all of buildstream's internal exceptions from the API surface.
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/basics.py | 2 | ||||
-rw-r--r-- | tests/plugins/pipeline.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/plugins/basics.py b/tests/plugins/basics.py index db72a29bc..993d87cec 100644 --- a/tests/plugins/basics.py +++ b/tests/plugins/basics.py @@ -4,7 +4,7 @@ import pytest from pluginbase import PluginBase from buildstream._elementfactory import ElementFactory from buildstream._sourcefactory import SourceFactory -from buildstream import PluginError +from buildstream._exceptions import PluginError DATA_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)), diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 1d4133f9e..f5c9a0c8f 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Project, Scope, PluginError +from buildstream import Context, Project, Scope +from buildstream._exceptions import PluginError from buildstream._pipeline import Pipeline from buildstream._platform import Platform |