From 3b87c60fd4dc6b7c8756d41277422bcc6c45b67e Mon Sep 17 00:00:00 2001 From: Hannu Parviainen Date: Fri, 29 Nov 2024 16:48:44 +0000 Subject: [PATCH] Ignoring 'pytest.PytestUnraisableExceptionWarning' warnings that are raised for "test_make_2d_arc_pass_wcs" and "test_load_onedstds" on Python 3.11. --- specreduce/tests/test_specphot_stds.py | 2 +- specreduce/tests/test_synth_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specreduce/tests/test_specphot_stds.py b/specreduce/tests/test_specphot_stds.py index e67f1c8..5d66e5a 100644 --- a/specreduce/tests/test_specphot_stds.py +++ b/specreduce/tests/test_specphot_stds.py @@ -17,7 +17,7 @@ def test_load_MAST_bad_filename(): sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) assert sp is None - +@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning") @pytest.mark.remote_data def test_load_onedstds(): sp = load_onedstds() diff --git a/specreduce/tests/test_synth_data.py b/specreduce/tests/test_synth_data.py index b8bcb87..ae06b89 100644 --- a/specreduce/tests/test_synth_data.py +++ b/specreduce/tests/test_synth_data.py @@ -27,9 +27,9 @@ def test_make_2d_arc_image_defaults(): ccdim = make_2d_arc_image() assert isinstance(ccdim, CCDData) - @pytest.mark.remote_data @pytest.mark.filterwarnings("ignore:No observer defined on WCS") +@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning") def test_make_2d_arc_pass_wcs(): nx = 3000 ny = 1000