From ee7edefbe57be93c56db5ed1d32a4a9e170b8359 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Mon, 14 Oct 2024 11:45:30 +0200 Subject: [PATCH] Do importskip before importing satpy --- satpy/tests/reader_tests/test_sar_c_safe.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/satpy/tests/reader_tests/test_sar_c_safe.py b/satpy/tests/reader_tests/test_sar_c_safe.py index f7191a951a..531305798b 100644 --- a/satpy/tests/reader_tests/test_sar_c_safe.py +++ b/satpy/tests/reader_tests/test_sar_c_safe.py @@ -26,13 +26,14 @@ import pytest import yaml -from satpy._config import PACKAGE_CONFIG_PATH -from satpy.dataset import DataQuery -from satpy.dataset.dataid import DataID -from satpy.readers.sar_c_safe import Calibrator, Denoiser, SAFEXMLAnnotation +geotiepoints = pytest.importorskip("geotiepoints", "1.7.5") + +from satpy._config import PACKAGE_CONFIG_PATH # noqa: E402 +from satpy.dataset import DataQuery # noqa: E402 +from satpy.dataset.dataid import DataID # noqa: E402 +from satpy.readers.sar_c_safe import Calibrator, Denoiser, SAFEXMLAnnotation # noqa: E402 rasterio = pytest.importorskip("rasterio") -geotiepoints = pytest.importorskip("geotiepoints", "1.7.5") dirname_suffix = "20190201T024655_20190201T024720_025730_02DC2A_AE07"