File: Skip-spiceypy-tests-if-not-availavbe.patch

package info (click to toggle)
sunpy 7.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,252 kB
  • sloc: python: 40,837; ansic: 1,710; makefile: 36
file content (21 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
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