From 8f2522a2fe81cd87e71efa6ed3f72f337968ff24 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Mon, 24 Jun 2024 14:19:01 -0400 Subject: [PATCH] Remove format spec in read in test --- specutils/tests/test_loaders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specutils/tests/test_loaders.py b/specutils/tests/test_loaders.py index 85f4ab701..779842671 100644 --- a/specutils/tests/test_loaders.py +++ b/specutils/tests/test_loaders.py @@ -782,7 +782,7 @@ def test_tabular_fits_compressed(compress, tmp_path): with warnings.catch_warnings(): warnings.simplefilter('ignore', FITSFixedWarning) os.system(f'{compress} {tmpfile}') - spec = Spectrum1D.read(tmpfile + ext[compress], format='tabular-fits') + spec = Spectrum1D.read(tmpfile + ext[compress]) assert isinstance(spec, Spectrum1D) assert spec.spectral_axis.shape[0] == len(disp) @@ -794,7 +794,7 @@ def test_tabular_fits_compressed(compress, tmp_path): with warnings.catch_warnings(): warnings.simplefilter('ignore', FITSFixedWarning) os.system(f'mv {tmpfile}{ext[compress]} {tmpfile}') - spec = Spectrum1D.read(tmpfile, format='tabular-fits') + spec = Spectrum1D.read(tmpfile) assert isinstance(spec, Spectrum1D) assert spec.spectral_axis.shape[0] == len(disp)