From 525645d76fd938e186755b755d9a0b684631f7c6 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Tue, 3 Dec 2024 10:59:15 -0500 Subject: [PATCH] Ignore deprecation warnings coming from upstream gwcs package --- specutils/tests/test_loaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specutils/tests/test_loaders.py b/specutils/tests/test_loaders.py index 202fb5fd6..9bb3478ea 100644 --- a/specutils/tests/test_loaders.py +++ b/specutils/tests/test_loaders.py @@ -779,6 +779,9 @@ def test_tabular_fits_update_header(tmp_path, metadata_hdu): @pytest.mark.filterwarnings("ignore:The unit 'Angstrom' has been deprecated") +# Ignore upstream warnings from GWCS +@pytest.mark.filterwarnings('ignore:The get_format_name function is deprecated') +@pytest.mark.filterwarnings('ignore:The class "Fits" has been renamed') def test_tabular_fits_autowrite(tmp_path): """Test writing of Spectrum1D with automatic selection of BINTABLE format.""" disp = np.linspace(1, 1.2, 21) * u.AA