Skip to content

Commit 140a917

Browse files
committed
break out into test_constellation_edge_cases
1 parent b5d7d24 commit 140a917

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

astropy/coordinates/tests/test_funcs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def test_sun():
3232
assert np.all(np.abs(gcrs2.dec - [23.5, 0, -23.5]*u.deg) < 1*u.deg)
3333

3434

35-
@pytest.mark.xfail
3635
def test_constellations(recwarn):
3736
from astropy.coordinates import ICRS, FK5, SkyCoord
3837
from astropy.coordinates.funcs import get_constellation
@@ -63,12 +62,18 @@ def test_constellations(recwarn):
6362
assert boores == 'Boötes'
6463
assert isinstance(boores, str) or getattr(boores, 'shape', None) == tuple()
6564

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
6670
# Test edge cases close to borders, using B1875.0 coordinates
6771
# Look for HMS / DMS roundoff-to-decimal issues from Roman (1987) data
6872
# as documented in https://github.com/astropy/astropy/issues/9855
6973
# The actual boundary on the west side of Orion at Dec +3.0 is
7074
# 06h14m30 == 6.2416666666666...
7175
ras = [6.24100, 6.24160, 6.24166, 6.24168]
76+
7277
# aka ['6h14m27.6s' '6h14m29.76s' '6h14m29.976s' '6h14m30.048s']
7378
decs = [3.0, 3.0, 3.0, 3.0]
7479
shortnames = ['Ori', 'Ori', 'Ori', 'Mon']

0 commit comments

Comments
 (0)