It looks like the pytest run on travis doesn't run the doctests: https://travis-ci.org/scikit-learn/scikit-learn/builds/256859150?utm_source=github_status&utm_medium=notification We should fix that.