From: Stefan Behnel Date: Fri, 3 Dec 2010 20:18:08 +0000 (+0100) Subject: removed 'complex' type test that depends on 'cdef complex' refering to the Python... X-Git-Tag: 0.14.alpha0~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c1b9e9b5d6a178b2eee9da62d5bc1d021f8f545;p=cython.git removed 'complex' type test that depends on 'cdef complex' refering to the Python type --- 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)