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`.
@@ -37,9 +37,8 @@ def pytest_collection_modifyitems(config, items):
skip_marker = pytest.mark.skip(
reason='FeatureHasher is not compatible with PyPy')
for item in items:
- if item.name in (
- 'sklearn.feature_extraction.hashing.FeatureHasher',
- 'sklearn.feature_extraction.text.HashingVectorizer'):
+ if item.name.endswith(('hashing.FeatureHasher',
+ 'text.HashingVectorizer')):
item.add_marker(skip_marker)
# Skip tests which require internet if the flag is provided
