Skip to content

Commit e0a9134

Browse files
committed
Exclude code to deal with old astroquery from code coverage
1 parent 05b0d0e commit e0a9134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galpy/orbit/Orbits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7468,7 +7468,7 @@ def _from_name_oneobject(name, obs):
74687468
"pmdec",
74697469
"rvz_radvel" if _AQ_GT_47 else "rv_value",
74707470
)
7471-
if not _AQ_GT_47:
7471+
if not _AQ_GT_47: # pragma: no cover
74727472
simbad.add_votable_fields("plx", "distance")
74737473
# query SIMBAD for the named object
74747474
try:
@@ -7506,7 +7506,7 @@ def _from_name_oneobject(name, obs):
75067506
dist = simbad_table["mesdistance.dist"][0]
75077507
else:
75087508
dist = 1.0 / simbad_table["plx_value"][0]
7509-
else:
7509+
else: # pragma: no cover
75107510
# check that the necessary coordinates have been found
75117511
missing = simbad_table.mask
75127512
if any(missing["RA_d", "DEC_d", "PMRA", "PMDEC", "RV_VALUE"][0]) or all(

0 commit comments

Comments
 (0)