diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index 6462a7e5..fbf20c28 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -61,7 +61,8 @@ class RVTransformationTestCase(unittest.TestCase): prior = GPy.priors.LogGaussian(.5, 0.1) m.theta.set_prior(prior) m.theta.constrain(trans) - self.assertTrue(m.checkgrad()) + m.randomize() + self.assertTrue(m.checkgrad(1)) def test_Logexp(self): self._test_trans(GPy.constraints.Logexp())