Skip to content

Commit

Permalink
Merge pull request #1093 from pllim/shhhh
Browse files Browse the repository at this point in the history
TST: Silence specutils warning in fixture
  • Loading branch information
kecnry authored Feb 21, 2022
2 parents c523362 + 6871b1f commit 30cb3d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jdaviz/configs/mosviz/tests/test_helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
import astropy.units as u
import csv
import numpy as np
Expand Down Expand Up @@ -67,7 +68,10 @@ def spectrum2d():
def spectrum_collection(spectrum1d):
sc = [spectrum1d]*5

return SpectrumCollection.from_spectra(sc)
with warnings.catch_warnings():
warnings.simplefilter('ignore')
result = SpectrumCollection.from_spectra(sc)
return result


@pytest.fixture
Expand Down

0 comments on commit 30cb3d6

Please # to comment.