MAINT: Handle numpy's deprecation of accepting out-of-bound integers.
authorwarren <warren.weckesser@gmail.com>
Wed, 12 Oct 2022 01:41:23 +0000 (21:41 -0400)
committerDrew Parsons <dparsons@debian.org>
Wed, 25 Jan 2023 14:32:10 +0000 (14:32 +0000)
commit9f77705d88fccd34309ae11e23988697f3c0e677
treefa7598a167b51a503a2e67b217d78d76d6da4c80
parentdb3f681de796dd1563d7177ac34045207af92b7c
MAINT: Handle numpy's deprecation of accepting out-of-bound integers.

After the change in https://github.com/numpy/numpy/pull/22385, numpy
raises a deprecation warning with calls such as np.int8(5000) and
np.uint32(-1).  This change avoids such calls in the tests.

Gbp-Pq: Name 0012-MAINT-Handle-numpy-s-deprecation-of-accepting-out-of.patch
scipy/sparse/tests/test_base.py
scipy/sparse/tests/test_sparsetools.py
scipy/spatial/tests/test_distance.py