Skip to content

Commit 00a67f4

Browse files
committed
TST: fixing expected warning type raised during hips2fits test
1 parent 2486495 commit 00a67f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroquery/hips2fits/tests/test_hips2fits_remote.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55
from astropy import wcs as astropy_wcs
66
from astropy.io import fits
7+
from astropy.utils.exceptions import AstropyUserWarning
78
import numpy as np
89
from matplotlib.colors import Colormap
910

@@ -82,7 +83,7 @@ def test_query_jpg_no_wcs(self):
8283
assert isinstance(result, np.ndarray) and result.shape[2] == 3
8384

8485
def test_bad_strech(self):
85-
with pytest.raises(AttributeError):
86+
with pytest.raises(AstropyUserWarning):
8687
hips2fits.query_with_wcs(
8788
hips=self.hips,
8889
wcs=self.w,

0 commit comments

Comments
 (0)