From 35fb4cfde1e04537a4b76aad78e186e3bd3e1b7a Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 4 Feb 2010 15:05:49 -0800 Subject: [PATCH] Fix unop_extras test. --- tests/run/unop_extras.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.26.2