Could you please add a test for this case? The test coverage report says that is not covered:

```
nosetests --with-coverage sklearn/metrics/tests/test_pairwise.py
open coverage/sklearn_metrics_pairwise.html
```