Commit f143148e authored by Stefan Behnel's avatar Stefan Behnel

Adapt doctest to new exception messages in Py3.11 (says "modulo" instead of "division").

parent 74073417
...@@ -9,7 +9,7 @@ def modobj(obj2, obj3): ...@@ -9,7 +9,7 @@ def modobj(obj2, obj3):
'5' '5'
>>> modobj(1, 0) # doctest: +ELLIPSIS >>> modobj(1, 0) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
ZeroDivisionError: integer division... ZeroDivisionError: integer ...
""" """
obj1 = obj2 % obj3 obj1 = obj2 % obj3
return obj1 return obj1
...@@ -19,7 +19,7 @@ def mod_10_obj(int2): ...@@ -19,7 +19,7 @@ def mod_10_obj(int2):
""" """
>>> mod_10_obj(0) # doctest: +ELLIPSIS >>> mod_10_obj(0) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
ZeroDivisionError: integer division... ZeroDivisionError: integer ...
>>> mod_10_obj(3) >>> mod_10_obj(3)
1 1
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment