From: Robert Bradshaw Date: Thu, 4 Feb 2010 23:05:49 +0000 (-0800) Subject: Fix unop_extras test. X-Git-Tag: 0.13.beta0~352 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35fb4cfde1e04537a4b76aad78e186e3bd3e1b7a;p=cython.git Fix unop_extras test. --- diff --git a/tests/run/unop_extras.pyx b/tests/run/unop_extras.pyx index 1c15d466..4f939218 100644 --- a/tests/run/unop_extras.pyx +++ b/tests/run/unop_extras.pyx @@ -1,4 +1,4 @@ -cimport cython +cimport cython.operator def test_deref(int x): """ @@ -8,7 +8,7 @@ def test_deref(int x): 5 """ cdef int* x_ptr = &x - return cython.dereference(x_ptr) + return cython.operator.dereference(x_ptr) def increment_decrement(int x): """ @@ -17,6 +17,6 @@ def increment_decrement(int x): 11 11 10 10 """ - print cython.preincrement(x), cython.postincrement(x), x - print cython.predecrement(x), cython.postdecrement(x), x + print cython.operator.preincrement(x), cython.operator.postincrement(x), x + print cython.operator.predecrement(x), cython.operator.postdecrement(x), x return x