diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2022-05-03 15:22:14 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-05-03 23:54:47 +0200 |
commit | f143148e21894d316b584013c9c8a196befa925f (patch) | |
tree | 12e95901ac0e141fa9d7c9867ba5da7ad49e56a8 | |
parent | 74073417c4f7e616af0a139a55f790f1ec7fe728 (diff) | |
download | cython-f143148e21894d316b584013c9c8a196befa925f.tar.gz |
Adapt doctest to new exception messages in Py3.11 (says "modulo" instead of "division").
-rw-r--r-- | tests/run/modop.pyx | 4 |
1 files 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 """ |