-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
pytest running pyximport? #2783
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
Comments
as far as i can tell this is the fault of one of the other libs pytest is unaware of pyximport |
OK. Is there a way to make the traceback go back further and figure out what is calling pyximport? |
This seems to me like pyximport is adding an import hook, so the import is actually causing it to be called. It'd probably be interesting to find out what's enabling it (as that seems to be needed according to the docs). As a hack, you can probably add a |
Good idea. Naturally it turned out I was wrong and there was a call to |
I'm trying to build+test a subset of
pandas._libs
, am seeing unexpected behavior out of pytest under py27.Under both py27 and py35 I can run "python setup.py build_ext --inplace" and load the modules interactively just fine. "pytest" runs the tests successfully, as does "tox -e py35" (which mostly just runs "pytest").
But either "tox -e py27" or "python -m pytest" raises errors at test-collection time
I'm trying to figure out why
pyximport
is getting involved, since it isn't called/imported anywhere in this package. I don't see it anywhere in thepytest
code either. Where else could this be coming from?The text was updated successfully, but these errors were encountered: