for f in funcs:
        with self.assertRaisesIncompatibleShapesError(
            (ValueError, errors.InvalidArgumentError)):
          f(x.astype(t), y.astype(t))