Exception fixes for Python 3 compat

This commit is contained in:
Mike Croucher 2015-02-26 14:29:40 +00:00
parent 74f8caba2b
commit c6b43d91da
8 changed files with 10 additions and 10 deletions

View file

@ -282,7 +282,7 @@ class KernelGradientTestsContinuous(unittest.TestCase):
try:
k.K(self.X)
except AssertionError:
raise AssertionError, "k.K(X) should run on self.D-1 dimension"
raise AssertionError("k.K(X) should run on self.D-1 dimension")
def test_Matern52(self):
k = GPy.kern.Matern52(self.D)