scikit-learn/scikit-learn — pull request #2881 by rafacarrascosa (2014-02-21 17:39:26+00:00)
Title: FIX ValueError was not being raised

len(indptr) is always greater that 0 because its initialized with non-empty list.
Because of that this branch is never taken and the ValueError never raised.