-
Notifications
You must be signed in to change notification settings - Fork 47
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
event.stdlib returns false-positive #103
Comments
Well technically t.py is not in the virtualenv. There were some bugs regarding stdlib detection that I fixed in the latest version - I wonder if there's a regression. Either way I'd like to know:
|
I don't have a strange path for cwd. It is I use Ubuntu 20.04 I use the default Python 3.8.10 BTW, I installed
I modified
The prefixes:
And t.py is in Outside the virtualenv the result looks like this:
Maybe it makes sense to exclude |
I found this ugly hack, which seems to work for my use case:
|
Unfortunately
event.stdlib
is True in my case, although the code is not from stdlib.Here is a simple way to reproduce it:
file t.py:
main.py
Call main.py
output:
===> hunter thinks "foo()" is in stdlib, but it is not.
I guess it is because of:
in
_event.pyx
Maybe it would help to exclude the virtualenv from SYS_PREFIX_PATHS.
The text was updated successfully, but these errors were encountered: