sklearn/utils/optimize.py contains a test in the end, that should go in the test folder and become a test, not a smoketest.