1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Ole Streicher <olebole@debian.org>
Date: Wed, 22 Nov 2023 20:57:11 +0100
Subject: Skip spiceypy tests if not availavbe
---
sunpy/coordinates/tests/test_spice.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sunpy/coordinates/tests/test_spice.py b/sunpy/coordinates/tests/test_spice.py
index 44e64ec..db52f82 100644
--- a/sunpy/coordinates/tests/test_spice.py
+++ b/sunpy/coordinates/tests/test_spice.py
@@ -1,6 +1,7 @@
import numpy as np
import pytest
-import spiceypy
+
+pytest.importorskip("spiceypy")
import astropy.units as u
from astropy.coordinates import ConvertError, SkyCoord, UnitSphericalRepresentation, frame_transform_graph
|