-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX Lazy cython import for pytest to work without cython #13980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX Lazy cython import for pytest to work without cython #13980
Conversation
To reproduce, I created an empty code environment with python 3.7, pip installed into it scikit-learn and pytest:
I then run ModuleNotFoundError: No module named 'Cython'
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
Can you confirm there is not other occurrences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you confirm there is not other occurrences?
Can confirm there are none.
Good to merge once the above PEP8 change is accepted.
Present of import atop the test file caused pytest to fail collecting tests if the testing environment did not have cython installed.
37befa7
to
60df40a
Compare
Thanks @oleksandr-pavlyk |
Present of import atop the test file caused pytest to fail collecting
tests if the testing environment did not have cython installed.
@ogrisel @jeremiedbb