-
Notifications
You must be signed in to change notification settings - Fork 58
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
False positive in a function marked raising on negative result #158
Comments
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Dec 28, 2018
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 21, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 21, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 22, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 23, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 25, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Feb 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a false positive analysing this function:
A more synthetic case is:
where the case that 1 <= val <= 4 is not transferred to rv, so it seems a negative number can be returned with no exception, resulting in the following trace.
Enabling the commented block removes the false positive. I tried to add a test to the plugin test suite but no success.
The text was updated successfully, but these errors were encountered: