diff --git a/test/likelihood_tests.py b/test/likelihood_tests.py index 25681b971026a0b5e9fb4d627dacfe0601369749..a3d6da004a6b6690332c957acee07256c6b3d67b 100644 --- a/test/likelihood_tests.py +++ b/test/likelihood_tests.py @@ -223,7 +223,8 @@ class TestStudentTLikelihood(unittest.TestCase): self.x, self.y, self.function, nu=None) likelihood.parameters['m'] = 2 likelihood.parameters['c'] = 0 - with self.assertRaises(TypeError): + with self.assertRaises((ValueError, TypeError)): + # ValueError in Python2, TypeError in Python3 likelihood.log_likelihood() def test_log_likelihood_nu_zero(self):