8000 TST Fix skipped PyPy doctests in conftest.py · scikit-learn/scikit-learn@67ea25d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67ea25d

Browse files
committed
TST Fix skipped PyPy doctests in conftest.py
The previous path is no longer correct due to `feature_extraction.hashing` being renamed to `feature_extraction._hashing`.
1 parent bb3b3f9 commit 67ea25d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def pytest_collection_modifyitems(config, items):
3737
skip_marker = pytest.mark.skip(
3838
reason='FeatureHasher is not compatible with PyPy')
3939
for item in items:
40-
if item.name in (
41-
'sklearn.feature_extraction.hashing.FeatureHasher',
42-
'sklearn.feature_extraction.text.HashingVectorizer'):
40+
if item.name.endswith(('hashing.FeatureHasher',
41+
'text.HashingVectorizer')):
4342
item.add_marker(skip_marker)
4443

4544
# Skip tests which require internet if the flag is provided

0 commit comments

Comments
 (0)
0