Skip to content

Commit 13a036f

Browse files
committed
Exclude code to deal with old astroquery from code coverage
1 parent 958ad0d commit 13a036f

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
@@ -7463,7 +7463,7 @@ def _from_name_oneobject(name, obs):
74637463
"pmdec",
74647464
"rvz_radvel" if _AQ_GT_47 else "rv_value",
74657465
)
7466-
if not _AQ_GT_47:
7466+
if not _AQ_GT_47: # pragma: no cover
74677467
simbad.add_votable_fields("plx", "distance")
74687468
# query SIMBAD for the named object
74697469
try:
@@ -7501,7 +7501,7 @@ def _from_name_oneobject(name, obs):
75017501
dist = simbad_table["mesdistance.dist"][0]
75027502
else:
75037503
dist = 1.0 / simbad_table["plx_value"][0]
7504-
else:
7504+
else: # pragma: no cover
75057505
# check that the necessary coordinates have been found
75067506
missing = simbad_table.mask
75077507
if any(missing["RA_d", "DEC_d", "PMRA", "PMDEC", "RV_VALUE"][0]) or all(

0 commit comments

Comments
 (0)