From f00d3fc1b00461d77e223d1ed10751bb657f8bdf Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 26 Apr 2011 09:21:58 +0200 Subject: [PATCH] Py3 test fix --- tests/run/arithmetic_analyse_types.pyx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/run/arithmetic_analyse_types.pyx b/tests/run/arithmetic_analyse_types.pyx index d37ef86a..7d5e4166 100644 --- a/tests/run/arithmetic_analyse_types.pyx +++ b/tests/run/arithmetic_analyse_types.pyx @@ -18,40 +18,40 @@ def short_binop(short val): """ Arithmetic in C is always done with at least int precision. - >>> short_binop(3) - 'int called' + >>> print(short_binop(3)) + int called """ assert typeof(val + val) == "int", typeof(val + val) assert typeof(val - val) == "int", typeof(val - val) assert typeof(val & val) == "int", typeof(val & val) cdef int_return x = f(val + val) - return x.msg + return x.msg.decode('ASCII') def short_unnop(short val): """ Arithmetic in C is always done with at least int precision. - >>> short_unnop(3) - 'int called' + >>> print(short_unnop(3)) + int called """ cdef int_return x = f(-val) - return x.msg + return x.msg.decode('ASCII') def longlong_binop(long long val): """ - >>> longlong_binop(3) - 'long long called' + >>> print(longlong_binop(3)) + long long called """ cdef longlong_return x = f(val * val) - return x.msg + return x.msg.decode('ASCII') def longlong_unnop(long long val): """ - >>> longlong_unnop(3) - 'long long called' + >>> print(longlong_unnop(3)) + long long called """ cdef longlong_return x = f(~val) - return x.msg + return x.msg.decode('ASCII') def test_bint(bint a): -- 2.26.2