Commit be696078 authored by Stefan Behnel's avatar Stefan Behnel

fix test case

parent dae30554
...@@ -147,14 +147,14 @@ def mod_div_zero_int(int a, int b, int c): ...@@ -147,14 +147,14 @@ def mod_div_zero_int(int a, int b, int c):
try: try:
return verbose_call(a % b) / c return verbose_call(a % b) / c
except ZeroDivisionError, ex: except ZeroDivisionError, ex:
return ex.message return str(ex)
@cython.cdivision(False) @cython.cdivision(False)
def mod_div_zero_float(float a, float b, float c): def mod_div_zero_float(float a, float b, float c):
try: try:
return (a % b) / c return (a % b) / c
except ZeroDivisionError, ex: except ZeroDivisionError, ex:
return ex.message return str(ex)
@cython.cdivision(False) @cython.cdivision(False)
def py_div_long(long a, long b): def py_div_long(long a, long b):
......
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