-
Notifications
You must be signed in to change notification settings - Fork 212
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
PyO3 error #614
Comments
I also encounter this issue recently while introducing pydantic into my code base and local pytest is broken due to the same I am using the First I try to find out what is going on on pyo3 side. Then I try to find out why pyo3 module is initialized multiple times when running pytest. Since
So the problem is caused by specifying package to be measured by Not 100% sure how By checking the Specifying source files further, actually So I try to run the test directly with coverage( |
Hello,
I am currently debugging weird issue that happens to us only when using --cov arguments to pytest and only during running tests (not in production with the same code).
Reproducer
I was able to narrow it down for this little setup:
create this structure:
Now, some_module.py is empty.
folder/__init__.py
has this content:test_one.py
has this content:When you run this command (note that in my case the whole directory structure is in
/home/vagrant/neto
directory):you get
explanation
Reasons why I think (though not sure) the problem is in python-cov:
from cryptography.hazmat.primitives import hashes
forimport jsonschema
and you get the into the same error.versions
The text was updated successfully, but these errors were encountered: