Skip to content

Commit 4fbd132

Browse files
committed
Skip testing failing DRs
1 parent 8fe4b14 commit 4fbd132

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

astroquery/sdss/tests/test_sdss_remote.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,19 @@ def test_query_non_default_field(self):
166166
assert query1.colnames == ['r', 'psfMag_r']
167167
assert query2.colnames == ['ra', 'dec', 'r']
168168

169-
def test_query_crossid(self):
170-
query1 = sdss.SDSS.query_crossid(self.coords)
169+
# crossid doesn't work for DR<10, remove limitation once #2303 is fixed
170+
@pytest.mark.parametrize("dr", dr_list[2:])
171+
def test_query_crossid(self, dr):
172+
query1 = sdss.SDSS.query_crossid(self.coords, data_release=dr)
171173
query2 = sdss.SDSS.query_crossid([self.coords, self.coords])
172174
assert isinstance(query1, Table)
173175
assert query1['objID'][0] == 1237652943176138868
174176

175177
assert isinstance(query2, Table)
176178
assert query2['objID'][0] == query1['objID'][0] == query2['objID'][1]
177179

178-
@pytest.mark.parametrize("dr", dr_list)
180+
# crossid doesn't work for DR<10, remove limitation once #2303 is fixed
181+
@pytest.mark.parametrize("dr", dr_list[2:])
179182
def test_spectro_query_crossid(self, dr):
180183
query1 = sdss.SDSS.query_crossid(self.coords,
181184
specobj_fields=['specObjID', 'z'],

0 commit comments

Comments
 (0)