astropy/astropy — pull request #494 by eteq (2012-11-20 00:05:25+00:00)
Title: adjust equality behavior to only compare quantity-like objects

As I promised in #445, this PR makes it so that quantity objects are only equal when being compared to other quantity-like objects (e.g. things that have `to` and `value`).

It also makes it so ``quantity == something`` and ``quantity != something`` never result in an error, and beefs up the tests in this area a bit.

@astrofrog and @adrn were involved in the earlier discussion - see the latter comments of #445 for details.