Skip to content
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: Change is comparison to == for tuple #1009

Merged
merged 1 commit into from Apr 17, 2020

Conversation

effigies
Copy link
Contributor

@effigies effigies commented Apr 16, 2020

Just here to try to help get to 5.0.0. I don't directly use rdflib, so I'm not familiar enough with the API to add a good test. Also, your coverage stats make it hard to see if this is getting properly exercised.

Assuming it is, my guess is that this is just a short-circuit to save some computation, and (None, None, None) would generate the same result going the long way round. If so, then there's not much to test anyway.

Long story short: Happy to add a test, if someone more familiar with the code base gives me a strong prod.

Closes #998.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.941% when pulling 9567926 on effigies:fix/is_syntax_error into a22f453 on RDFLib:master.

@white-gecko white-gecko added this to the rdflib 5.0.0 milestone Apr 17, 2020
@white-gecko white-gecko merged commit 96ead25 into RDFLib:master Apr 17, 2020
@effigies effigies deleted the fix/is_syntax_error branch April 17, 2020 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect use of 'is'
3 participants