Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix last doctest in integrate (exception mismatch)
Browse files Browse the repository at this point in the history
  • Loading branch information
mforets committed Mar 19, 2017
1 parent ec15897 commit 1cf59f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4115,7 +4115,7 @@ def integrate(self, polynomial, **kwds):
if is_package_installed('latte_int'):
from sage.interfaces.latte import integrate
if self.base_ring() == RDF:
raise ValueError("LattE integrale cannot be applied over inexact rings.")
raise TypeError("LattE integrale cannot be applied over inexact rings.")
elif not self.is_full_dimensional():
raise NotImplementedError("The polytope must be full-dimensional.")
else:
Expand Down

0 comments on commit 1cf59f4

Please sign in to comment.