Skip to content

Commit

Permalink
Still trying to figure out why some tests suddenly fail in Python 3.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Nov 29, 2024
1 parent cedb9af commit b80551b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specreduce/tests/test_linelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_pypeit_nonexisting_lamp():
Test to make sure a warning is raised if the lamp list includes a bad lamp name.
"""
with pytest.warns(UserWarning, match='NeJ not in the list'):
line_tab = load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) # noqa
load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False)


@pytest.mark.remote_data
Expand Down
3 changes: 2 additions & 1 deletion specreduce/tests/test_specphot_stds.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def test_load_MAST():
@pytest.mark.remote_data
def test_load_MAST_bad_filename():
with pytest.warns(AstropyUserWarning, match="Downloading of"):
sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) # noqa
sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False)
assert sp is None


@pytest.mark.remote_data
Expand Down

0 comments on commit b80551b

Please sign in to comment.