TST Fix PyPy CI due to _hashing import in
@@ -4,7 +4,6 @@ from numpy.testing import assert_array_equal
import pytest
from sklearn.feature_extraction import FeatureHasher
-from sklearn.feature_extraction._hashing import transform as _hashing_transform
from sklearn.utils.testing import (ignore_warnings,
fails_if_pypy)
@@ -48,6 +47,8 @@ def test_feature_hasher_strings():
def test_hashing_transform_seed():
# check the influence of the seed when computing the hashes
+ from sklearn.feature_extraction._hashing import (
+ transform as _hashing_transform)
raw_X = [["foo", "bar", "baz", "foo".encode("ascii")],
["bar".encode("ascii"), "baz", "quux"]]
