Skip to content

Commit

Permalink
MAINT: release branch failures
Browse files Browse the repository at this point in the history
* attempt to deal with scipygh-20576
  • Loading branch information
tylerjereddy committed May 15, 2024
1 parent 5c770e8 commit 7db39e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions scipy/linalg/_testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def __init__(self, data):
self._data = data

def __array__(self, dtype=None, copy=None):
if copy:
return self._data.copy()
return self._data


Expand Down
6 changes: 2 additions & 4 deletions scipy/stats/_continuous_distns.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,12 +692,10 @@ def _sf(self, x, a, b):
return _boost._beta_sf(x, a, b)

def _isf(self, x, a, b):
with np.errstate(over='ignore'): # see gh-17432
return _boost._beta_isf(x, a, b)
return sc.betainccinv(a, b, x)

def _ppf(self, q, a, b):
with np.errstate(over='ignore'): # see gh-17432
return _boost._beta_ppf(q, a, b)
return sc.betaincinv(a, b, q)

def _stats(self, a, b):
return (
Expand Down
2 changes: 1 addition & 1 deletion scipy/stats/tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4460,7 +4460,7 @@ def test_endpoints(self):
assert_equal(stats.beta.pdf(1, a, b), 5)
assert_equal(stats.beta.pdf(1-1e-310, a, b), 5)

@pytest.mark.xfail(IS_PYPY, reason="Does not convert boost warning")
@pytest.mark.xfail(reason="Does not warn on special codepath")
def test_boost_eval_issue_14606(self):
q, a, b = 0.995, 1.0e11, 1.0e13
with pytest.warns(RuntimeWarning):
Expand Down

0 comments on commit 7db39e8

Please sign in to comment.