Also this assertion is failing when run by travis. Also I don't understand why the digits dataset with 10 neighbors would prevent ward from forming 2 clusters. Is there any theoretical reason why it should be the case?