def test_distance(self):
        expected = Series(np.array([
                          np.sqrt((5 - 1)**2 + (1 - 5)**2),
                          np.nan]),
                    self.na_none.index)
        assert_array_equal(expected, self.na_none.distance(self.p0))

        expected = Series(np.array([np.sqrt(4**2 + 4**2), np.nan]),
                          self.g6.index)
        assert_array_equal(expected, self.g6.distance(self.na_none))
dataset/ETHPy150Open geopandas/geopandas/geopandas/tests/test_geom_methods.py/TestGeomMethods.test_distance/swapped operands of `-`