Fixed bug where the variable name was defined but not used.
Merge pull request #1889 from AlassaneNdiaye/fix_test_cross_validation_bug

Fixed bug detected by test_cross_validation.py:test_train_cv