TST: distance: self.assertRaises -> numpy.testing.assert_raises