From cedb9afeb911397d2bc2c652303985a9241e6076 Mon Sep 17 00:00:00 2001 From: Hannu Parviainen Date: Fri, 29 Nov 2024 16:34:27 +0000 Subject: [PATCH] Trying to figure out why some tests suddenly fail in Python 3.11. --- specreduce/tests/test_linelists.py | 2 +- specreduce/tests/test_specphot_stds.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specreduce/tests/test_linelists.py b/specreduce/tests/test_linelists.py index 247868c..d3e5784 100644 --- a/specreduce/tests/test_linelists.py +++ b/specreduce/tests/test_linelists.py @@ -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'): - load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) + line_tab = load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) # noqa @pytest.mark.remote_data diff --git a/specreduce/tests/test_specphot_stds.py b/specreduce/tests/test_specphot_stds.py index b347684..b8e34fb 100644 --- a/specreduce/tests/test_specphot_stds.py +++ b/specreduce/tests/test_specphot_stds.py @@ -14,7 +14,7 @@ def test_load_MAST(): @pytest.mark.remote_data def test_load_MAST_bad_filename(): with pytest.warns(AstropyUserWarning, match="Downloading of"): - load_MAST_calspec("j191b2b_005.fits", show_progress=False) + sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) # noqa @pytest.mark.remote_data