Skip to content

Commit 1e7c008

Browse files
committed
Fixup sdss import order; fix error type
1 parent a3dd48e commit 1e7c008

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

astroquery/hips2fits/tests/test_hips2fits_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_query_jpg_no_wcs(self):
8383
assert isinstance(result, np.ndarray) and result.shape[2] == 3
8484

8585
def test_bad_strech(self):
86-
with pytest.raises(AstropyUserWarning, match=r"stretch: must either"):
86+
with pytest.raises(AttributeError, match=r"Unknown value azs for stretch parameter"):
8787
hips2fits.query_with_wcs(
8888
hips=self.hips,
8989
wcs=self.w,

astroquery/sdss/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"""
66
from astropy import config as _config
77

8-
from .core import SDSS, SDSSClass
9-
108

119
class Conf(_config.ConfigNamespace):
1210
"""
@@ -27,4 +25,7 @@ class Conf(_config.ConfigNamespace):
2725
conf = Conf()
2826

2927

28+
from .core import SDSS, SDSSClass
29+
30+
3031
__all__ = ["SDSS", "SDSSClass", conf]

0 commit comments

Comments
 (0)