@@ -32,7 +32,6 @@ def test_sun():
32
32
assert np .all (np .abs (gcrs2 .dec - [23.5 , 0 , - 23.5 ]* u .deg ) < 1 * u .deg )
33
33
34
34
35
- @pytest .mark .xfail
36
35
def test_constellations (recwarn ):
37
36
from astropy .coordinates import ICRS , FK5 , SkyCoord
38
37
from astropy .coordinates .funcs import get_constellation
@@ -63,12 +62,18 @@ def test_constellations(recwarn):
63
62
assert boores == 'Boötes'
64
63
assert isinstance (boores , str ) or getattr (boores , 'shape' , None ) == tuple ()
65
64
65
+
66
+ @pytest .mark .xfail
67
+ def test_constellation_edge_cases ():
68
+ from astropy .coordinates import FK5
69
+ from astropy .coordinates .funcs import get_constellation
66
70
# Test edge cases close to borders, using B1875.0 coordinates
67
71
# Look for HMS / DMS roundoff-to-decimal issues from Roman (1987) data
68
72
# as documented in https://github.com/astropy/astropy/issues/9855
69
73
# The actual boundary on the west side of Orion at Dec +3.0 is
70
74
# 06h14m30 == 6.2416666666666...
71
75
ras = [6.24100 , 6.24160 , 6.24166 , 6.24168 ]
76
+
72
77
# aka ['6h14m27.6s' '6h14m29.76s' '6h14m29.976s' '6h14m30.048s']
73
78
decs = [3.0 , 3.0 , 3.0 , 3.0 ]
74
79
shortnames = ['Ori' , 'Ori' , 'Ori' , 'Mon' ]
0 commit comments