Closed
Description
In scikit-learn we have seen failures in doctests for a few days on our build using numpy-dev. This is one of them:
import numpy as np
try:
np.set_printoptions(legacy=True)
except Exception:
pass
print(repr(np.array([0.])))
print(repr(np.array([[0.]])))
print(repr(np.array([1., 2., 3.])))
With numpy master:
array([0.])
array([[0.]])
array([ 1., 2., 3.])
With numpy 1.13 (note the space before the 0):
array([ 0.])
array([[ 0.]])
array([ 1., 2., 3.])