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>
Thu, 19 Jan 2023 13:54:51 +0000 (13:54 +0000)
commitece3393aa137c4c0b042f40b2137e492c7ecd378
treec46c6f1c5b50c94cb7a2717b95faa3880874e872
parent12c8ea9d135c0d3b8ff9df6fcea2f78833d886aa
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