Skip to content

Commit

Permalink
Ignore deprecation warnings coming from upstream gwcs package
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 19, 2024
1 parent 9ea3ad1 commit 525645d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specutils/tests/test_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 525645d

Please sign in to comment.