summaryrefslogtreecommitdiff
path: root/src/buildstream/testing/_sourcetests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/testing/_sourcetests/utils.py')
-rw-r--r--src/buildstream/testing/_sourcetests/utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buildstream/testing/_sourcetests/utils.py b/src/buildstream/testing/_sourcetests/utils.py
index 4cfb696bd..1331ae101 100644
--- a/src/buildstream/testing/_sourcetests/utils.py
+++ b/src/buildstream/testing/_sourcetests/utils.py
@@ -21,6 +21,10 @@
import os
+from buildstream import _yaml
+
+from .. import ALL_REPO_KINDS
+
# To make use of these test utilities it is necessary to have pytest
# available. However, we don't want to have a hard dependency on
# pytest.
@@ -31,9 +35,6 @@ except ImportError:
msg = "Could not import pytest:\n" "To use the {} module, you must have pytest installed.".format(module_name)
raise ImportError(msg)
-from buildstream import _yaml
-from .. import ALL_REPO_KINDS
-
# kind()
#