diff --git a/tests/functional/openlp_plugins/songs/test_openoffice.py b/tests/functional/openlp_plugins/songs/test_openoffice.py index 4172a553c..82cce6e10 100644 --- a/tests/functional/openlp_plugins/songs/test_openoffice.py +++ b/tests/functional/openlp_plugins/songs/test_openoffice.py @@ -25,12 +25,14 @@ This module contains tests for the OpenOffice/LibreOffice importer. from unittest import TestCase, SkipTest from unittest.mock import MagicMock, patch -from openlp.core.common.registry import Registry -try: - from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport -except ImportError: +from openlp.core.common import is_linux + +if not is_linux: raise SkipTest('Could not import OpenOfficeImport probably due to unavailability of uno') +from openlp.core.common.registry import Registry +from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport + from tests.helpers.testmixin import TestMixin