fix test case
authorStefan Behnel <scoder@users.berlios.de>
Fri, 17 Apr 2009 07:11:16 +0000 (09:11 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 17 Apr 2009 07:11:16 +0000 (09:11 +0200)
tests/run/cdivision_CEP_516.pyx

index 9866594e4c866eb37c08215d97bc2576c44e49fc..31b5e3d02af6898ee2d5d171ac777a77e1b08e49 100644 (file)
@@ -147,14 +147,14 @@ def mod_div_zero_int(int a, int b, int c):
     try:
         return verbose_call(a % b) / c
     except ZeroDivisionError, ex:
-        return ex.message
+        return str(ex)
 
 @cython.cdivision(False)
 def mod_div_zero_float(float a, float b, float c):
     try:
         return (a % b) / c
     except ZeroDivisionError, ex:
-        return ex.message
+        return str(ex)
 
 @cython.cdivision(False)
 def py_div_long(long a, long b):