Commit 28db3c69 by Peter Hawkins Committed by Copybara-Service

[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0.

This change migrates users of APIs removed in NumPy 2.0 to their recommended replacements (https://numpy.org/devdocs/numpy_2_0_migration_guide.html).

PiperOrigin-RevId: 656738213
parent 8a8bf62b
...@@ -377,7 +377,7 @@ class AbslNumericSpanTest(parameterized.TestCase): ...@@ -377,7 +377,7 @@ class AbslNumericSpanTest(parameterized.TestCase):
('read_only', make_read_only_numpy_array()), ('read_only', make_read_only_numpy_array()),
('strided_skip', make_strided_numpy_array(2)), ('strided_skip', make_strided_numpy_array(2)),
('strided_reverse', make_strided_numpy_array(-1)), ('strided_reverse', make_strided_numpy_array(-1)),
('non_supported_type', np.zeros(5, dtype=np.unicode_)), ('non_supported_type', np.zeros(5, dtype=np.str_)),
('native_list', [0] * 5)) ('native_list', [0] * 5))
def test_fill_span_fails_from(self, values): def test_fill_span_fails_from(self, values):
with self.assertRaises(TypeError): with self.assertRaises(TypeError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment