From aca3398a81b3688e1f2e69c5910b8214d13be925 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Fri, 15 Jul 2016 10:57:04 +0200 Subject: [PATCH] Fix doctests for changed exception type --- src/sage/rings/integer.pyx | 2 +- src/sage/structure/element.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/rings/integer.pyx b/src/sage/rings/integer.pyx index eaf5cf89431..40119624f2c 100644 --- a/src/sage/rings/integer.pyx +++ b/src/sage/rings/integer.pyx @@ -2929,7 +2929,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement): sage: a % b Traceback (most recent call last): ... - ZeroDivisionError: reduction modulo 100 not defined + ArithmeticError: reduction modulo 100 not defined """ cdef Integer z cdef long yy, res diff --git a/src/sage/structure/element.pyx b/src/sage/structure/element.pyx index 7d9b201db9e..69051e50378 100644 --- a/src/sage/structure/element.pyx +++ b/src/sage/structure/element.pyx @@ -2267,7 +2267,7 @@ cdef class CommutativeRingElement(RingElement): sage: R(120).divides(R(121)) Traceback (most recent call last): ... - ZeroDivisionError: reduction modulo 120 not defined + ArithmeticError: reduction modulo 120 not defined If ``x`` has different parent than ``self``, they are first coerced to a common parent if possible. If this coercion fails, it returns a