astropy/astropy — pull request #2250 by mhvk (2014-03-28 00:57:47+00:00)
Title: Corrections to ensure Distance can be compared.  Closes #2206

This is an alternative solution to #2207, allowing `Distances` to be compared (and, e.g., `Distance(15.*u.kpc)**2` to return a `Quantity`). Adds test cases for the comparison.