Skip to content

Commit 4ef679b

Browse files
committed
TST Fix PyPy CI due to _hashing import in scikit-learn#14605
1 parent 6e02fee commit 4ef679b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/feature_extraction/tests/test_feature_hasher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pytest
55

66
from sklearn.feature_extraction import FeatureHasher
7-
from sklearn.feature_extraction._hashing import transform as _hashing_transform
87
from sklearn.utils.testing import (ignore_warnings,
98
fails_if_pypy)
109

@@ -48,6 +47,8 @@ def test_feature_hasher_strings():
4847

4948
def test_hashing_transform_seed():
5049
# check the influence of the seed when computing the hashes
50+
from sklearn.feature_extraction._hashing import (
51+
transform as _hashing_transform)
5152
raw_X = [["foo", "bar", "baz", "foo".encode("ascii")],
5253
["bar".encode("ascii"), "baz", "quux"]]
5354

0 commit comments

Comments
 (0)