atmtools / typhon

Tools for atmospheric research
http://www.radiativetransfer.org/
MIT License
58 stars 33 forks source link

Don't fail comparing FileInfo to other type #378

Closed gerritholl closed 3 years ago

gerritholl commented 3 years ago

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.