summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/examples/flatpak-autotools.py8
-rw-r--r--tests/testutils/site.py9
2 files changed, 7 insertions, 10 deletions
diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py
index dc4a3ce15..cdc629de1 100644
--- a/tests/examples/flatpak-autotools.py
+++ b/tests/examples/flatpak-autotools.py
@@ -7,7 +7,6 @@ import pytest
from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
from buildstream.testing._utils.site import IS_LINUX, MACHINE_ARCH
-from tests.testutils.site import HAVE_OSTREE
pytestmark = pytest.mark.integration
@@ -18,6 +17,13 @@ DATA_DIR = os.path.join(
)
+try:
+ from bst_plugins_experimental.sources import _ostree # pylint: disable=unused-import
+ HAVE_OSTREE = True
+except (ImportError, ValueError):
+ HAVE_OSTREE = False
+
+
# FIXME: Workaround a setuptools bug which fails to include symbolic
# links in the source distribution.
#
diff --git a/tests/testutils/site.py b/tests/testutils/site.py
deleted file mode 100644
index 8a75f00ae..000000000
--- a/tests/testutils/site.py
+++ /dev/null
@@ -1,9 +0,0 @@
-# Some things resolved about the execution site,
-# so we dont have to repeat this everywhere
-#
-
-try:
- from bst_plugins_experimental.sources import _ostree # pylint: disable=unused-import
- HAVE_OSTREE = True
-except (ImportError, ValueError):
- HAVE_OSTREE = False