Skip to content

Commit

Permalink
TST: Update modeling test logic
Browse files Browse the repository at this point in the history
that now fails in devdeps with scipy dev
  • Loading branch information
pllim committed Aug 27, 2023
1 parent 2417387 commit c1459b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions astropy/modeling/tests/test_constraints.py
Expand Up @@ -15,7 +15,6 @@
from astropy.modeling.core import Fittable1DModel
from astropy.modeling.parameters import Parameter
from astropy.utils import minversion
from astropy.utils.compat.numpycompat import NUMPY_LT_2_0
from astropy.utils.compat.optional_deps import HAS_SCIPY
from astropy.utils.exceptions import AstropyUserWarning

Expand Down Expand Up @@ -211,7 +210,7 @@ def test_bounds_gauss2d_lsq(self, fitter):
ctx2 = nullcontext()
if isinstance(fitter, fitting.TRFLSQFitter):
ctx = np.errstate(invalid="ignore", divide="ignore")
if not NUMPY_LT_2_0 or not SCIPY_LT_1_11_2:
if not SCIPY_LT_1_11_2:
ctx2 = pytest.warns(
AstropyUserWarning, match="The fit may be unsuccessful"
)
Expand Down

0 comments on commit c1459b9

Please sign in to comment.