Skip to content

Commit ff1cdd6

Browse files
committed
- Corrected test for local NoResultsWarning when empty ephemeris table is retrieved
1 parent d1dbd5f commit ff1cdd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroquery/mpc/tests/test_mpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
from astropy.coordinates import EarthLocation, Angle
6565
from astropy.time import Time
6666

67-
from ...exceptions import EmptyResponseError, InvalidQueryError
67+
from ...exceptions import EmptyResponseError, InvalidQueryError, NoResultsWarning
6868
from ... import mpc
6969
from astroquery.utils.mocks import MockResponse
7070
from requests import Request
@@ -190,7 +190,7 @@ def test_get_ephemeris_Moon_phase_and_Uncertainty(patch_post):
190190

191191

192192
def test_get_ephemeris_by_name_fail(patch_post):
193-
with pytest.raises(EmptyResponseError):
193+
with pytest.raises(NoResultsWarning):
194194
mpc.core.MPC.get_ephemeris('340P', location='G37')
195195

196196

0 commit comments

Comments
 (0)