MNT: remove pytest imported twice.
Minor reorder of the imports as well.
import pytest
+
import numpy as np
-from scipy import sparse
from numpy.testing import (assert_array_almost_equal, assert_array_equal,
assert_equal)
+from scipy import sparse
from sklearn import datasets, svm, linear_model, base
from sklearn.datasets import make_classification, load_digits, make_blobs
@@ -12,7 +13,6 @@ from sklearn.utils.extmath import safe_sparse_dot
from sklearn.utils.testing import (assert_raises, assert_true, assert_false,
assert_warns, assert_raise_message,
ignore_warnings, skip_if_32bit)
-import pytest
# test sample 1
