scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

MAINT: Adapt to NumPy 2.0 #146

Closed ev-br closed 4 months ago

ev-br commented 5 months ago

Otherwise self-tests simply hang: np.VisibleDeprecatinWarning is not found at https://github.com/ev-br/scpdt/blob/main/scpdt/impl.py#L254, so we get into the except Exception: branch and it all goes downhill from there.

cross-ref https://github.com/ev-br/scpdt/issues/79#issuecomment-1963747649

ev-br commented 5 months ago

There will be more of these. Will be easier to smoke them out when there is a numpy-2.0 compatible scipy build

ev-br commented 5 months ago

The lack of numpy 2.0 compatible matplotlib is a blocker. Self-tests pass when skipping MPL (cross-ref gh-131) though. FWIW.

ev-br commented 4 months ago

OK, run tests locally with numpy 2.0 and MPL 3.8.3. The only fix here was to adjust the MPL filter for the display-less backend. SciPy branch had to adjust a bit to the numpy 2.0 scalar repr, the main one is gh-147. Merging this now to test https://github.com/scipy/scipy/pull/20127