test_ok1/changelog/4643.trivial.rst

4 lines
236 B
ReStructuredText
Raw Normal View History

2019-01-14 19:03:23 +08:00
Use ``a.item()`` instead of the deprecated ``np.asscalar(a)`` in ``pytest.approx``.
``np.asscalar`` has been `deprecated <https://github.com/numpy/numpy/blob/master/doc/release/1.16.0-notes.rst#new-deprecations>`__ in ``numpy 1.16.``.