X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/2e558859456a109279713a2cbdd6c48a70a171c6..98edd00eb4b05e85f7cb1b85cff2f4d733909c57:/linpy/tests/test_linexprs.py?ds=inline diff --git a/linpy/tests/test_linexprs.py b/linpy/tests/test_linexprs.py index 9599d06..1b01186 100644 --- a/linpy/tests/test_linexprs.py +++ b/linpy/tests/test_linexprs.py @@ -195,7 +195,7 @@ class TestLinExpr(unittest.TestCase): self.assertEqual(LinExpr.fromsympy(sp_x), self.x) self.assertEqual(LinExpr.fromsympy(sympy.Rational(22, 7)), self.pi) self.assertEqual(LinExpr.fromsympy(sp_x - 2*sp_y + 3), self.expr) - with self.assertRaises(ValueError): + with self.assertRaises(TypeError): LinExpr.fromsympy(sp_x*sp_y) @requires_sympy