From 4c1b9e9b5d6a178b2eee9da62d5bc1d021f8f545 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 3 Dec 2010 21:18:08 +0100 Subject: [PATCH] removed 'complex' type test that depends on 'cdef complex' refering to the Python type --- tests/run/builtincomplex.pyx | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 tests/run/builtincomplex.pyx diff --git a/tests/run/builtincomplex.pyx b/tests/run/builtincomplex.pyx deleted file mode 100644 index 80aef59c..00000000 --- a/tests/run/builtincomplex.pyx +++ /dev/null @@ -1,32 +0,0 @@ - -cimport cython - -@cython.test_assert_path_exists('//TupleNode//CoerceToPyTypeNode//AttributeNode') -def complex_attributes(): - """ - >>> complex_attributes() - (1.0, 2.0) - """ - cdef complex c = 1+2j - return (c.real, c.imag) - -@cython.test_assert_path_exists('//TupleNode//CoerceToPyTypeNode//AttributeNode') -def complex_attributes_assign(): - """ - >>> complex_attributes_assign() - (10.0, 20.0) - """ - cdef complex c = 1+2j - c.real, c.imag = 10, 20 - return (c.real, c.imag) - -@cython.test_assert_path_exists('//TupleNode//CoerceToPyTypeNode//AttributeNode') -def complex_cstruct_assign(): - """ - >>> complex_cstruct_assign() - (10.0, 20.0) - """ - cdef complex c = 1+2j - cval = &c.cval - cval.real, cval.imag = 10, 20 - return (c.real, c.imag) -- 2.26.2