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

Don't fail comparing FileInfo to other type #378

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

gerritholl
Copy link
Contributor

Don't fail with an AttributeError when comparing a FileInfo instance to
a string. Equality operations shouldn't fail, rather then the other has
a different type then the result of the equality should simply be a
negative.

Also adds some unit tests for FileInfo comparisons.

Don't fail with an AttributeError when comparing a FileInfo instance to
a string.  Equality operations shouldn't fail, rather then the other has
a different type then the result of the equality should simply be a
negative.
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.

2 participants