summaryrefslogtreecommitdiff
path: root/tests/format
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:15:33 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:15:33 +0900
commit27aac095bdb6b0025c989572789a1f98d8d89b3c (patch)
tree0ca7572b7db4b8b5fcb47e08fda41e22bbe41990 /tests/format
parent0defb35c0334d78e48bcf21ec6b106b67761e1bc (diff)
downloadbuildstream-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/format')
-rw-r--r--tests/format/assertion.py2
-rw-r--r--tests/format/listdirectiveerrors.py2
-rw-r--r--tests/format/optionarch.py2
-rw-r--r--tests/format/optionbool.py2
-rw-r--r--tests/format/optioneltmask.py2
-rw-r--r--tests/format/optionenum.py2
-rw-r--r--tests/format/optionexports.py2
-rw-r--r--tests/format/optionflags.py2
-rw-r--r--tests/format/options.py2
-rw-r--r--tests/format/projectoverrides.py2
10 files changed, 10 insertions, 10 deletions
diff --git a/tests/format/assertion.py b/tests/format/assertion.py
index ec1305081..27a3d3fc7 100644
--- a/tests/format/assertion.py
+++ b/tests/format/assertion.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/listdirectiveerrors.py b/tests/format/listdirectiveerrors.py
index 9f2cfaaca..8a5d4f152 100644
--- a/tests/format/listdirectiveerrors.py
+++ b/tests/format/listdirectiveerrors.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optionarch.py b/tests/format/optionarch.py
index fce689800..5d28b83f2 100644
--- a/tests/format/optionarch.py
+++ b/tests/format/optionarch.py
@@ -2,7 +2,7 @@ import os
import pytest
from contextlib import contextmanager
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optionbool.py b/tests/format/optionbool.py
index a02ec742e..3c33a8713 100644
--- a/tests/format/optionbool.py
+++ b/tests/format/optionbool.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optioneltmask.py b/tests/format/optioneltmask.py
index 83ccf8b6f..84c594772 100644
--- a/tests/format/optioneltmask.py
+++ b/tests/format/optioneltmask.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optionenum.py b/tests/format/optionenum.py
index 5804a5fc1..19dd3d4af 100644
--- a/tests/format/optionenum.py
+++ b/tests/format/optionenum.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optionexports.py b/tests/format/optionexports.py
index 849c9148e..d824f0306 100644
--- a/tests/format/optionexports.py
+++ b/tests/format/optionexports.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/optionflags.py b/tests/format/optionflags.py
index 7ad5f2485..de48ab9d1 100644
--- a/tests/format/optionflags.py
+++ b/tests/format/optionflags.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/options.py b/tests/format/options.py
index 5cb01622c..1cfea7c71 100644
--- a/tests/format/options.py
+++ b/tests/format/options.py
@@ -1,7 +1,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory
diff --git a/tests/format/projectoverrides.py b/tests/format/projectoverrides.py
index 4d6eb14f5..1824ff0be 100644
--- a/tests/format/projectoverrides.py
+++ b/tests/format/projectoverrides.py
@@ -2,7 +2,7 @@
import os
import pytest
from buildstream import _yaml
-from buildstream import LoadError, LoadErrorReason
+from buildstream._exceptions import LoadError, LoadErrorReason
from tests.testutils.runcli import cli
# Project directory