From f143148e21894d316b584013c9c8a196befa925f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 3 May 2022 15:22:14 +0200 Subject: Adapt doctest to new exception messages in Py3.11 (says "modulo" instead of "division"). --- tests/run/modop.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run/modop.pyx b/tests/run/modop.pyx index c7b4c7d57..44dea3abc 100644 --- a/tests/run/modop.pyx +++ b/tests/run/modop.pyx @@ -9,7 +9,7 @@ def modobj(obj2, obj3): '5' >>> modobj(1, 0) # doctest: +ELLIPSIS Traceback (most recent call last): - ZeroDivisionError: integer division... + ZeroDivisionError: integer ... """ obj1 = obj2 % obj3 return obj1 @@ -19,7 +19,7 @@ def mod_10_obj(int2): """ >>> mod_10_obj(0) # doctest: +ELLIPSIS Traceback (most recent call last): - ZeroDivisionError: integer division... + ZeroDivisionError: integer ... >>> mod_10_obj(3) 1 """ -- cgit v1.2.1