MAINT: change an exception to a warning so that the scipy.sparse.linalg tests pass