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)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 3 Jan 2023 20:59:59 +0000 (20:59 +0000)
commit900afbe049bfe51b24d3441d9494a4b1a6af6308
tree04e24262e6e22794eb4b24a7f4b1fceedf3ca598
parent072f8ef40d9e179c1c9635b4754ccf59ae1e9035
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