From b3575c3fcb4691a5e70a85200944dab215ee876f Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sun, 13 Sep 2015 08:43:48 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index 0bb6720a..81a58735 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -59,7 +59,10 @@ class RVTransformationTestCase(unittest.TestCase): for i in range(5): m.theta = theta_s[i] print(m.theta, m.optimizer_array, m.param_array) - self.assertTrue(m.checkgrad(verbose=True)) + try: + self.assertTrue(m.checkgrad()) + except: + self.assertTrue(m.checkgrad(1)) def test_Logexp(self): self._test_trans(GPy.constraints.Logexp())