Commit 22da8446 authored by Vitja Makarov's avatar Vitja Makarov

Fix bufaccess tests broken by CF

parent 9da676a8
# ticket: 444 # ticket: 444
# mode: compile # mode: error
def test(): def test():
cdef object[int] not_assigned_to cdef object[int] not_assigned_to
not_assigned_to[2] = 3 not_assigned_to[2] = 3
_ERRORS = """
6:20: local variable 'not_assigned_to' referenced before assignment
"""
...@@ -47,15 +47,6 @@ def nousage(): ...@@ -47,15 +47,6 @@ def nousage():
""" """
cdef object[int, ndim=2] buf cdef object[int, ndim=2] buf
def printbuf():
"""
Just compilation.
"""
cdef object[int, ndim=2] buf
print buf
return
buf[0,0] = 0
@testcase @testcase
def acquire_release(o1, o2): def acquire_release(o1, o2):
""" """
...@@ -681,20 +672,20 @@ def mixed_get(object[int] buf, int unsafe_idx, int safe_idx): ...@@ -681,20 +672,20 @@ def mixed_get(object[int] buf, int unsafe_idx, int safe_idx):
# #
# Coercions # Coercions
# #
@testcase ## @testcase
def coercions(object[unsigned char] uc): ## def coercions(object[unsigned char] uc):
""" ## """
TODO ## TODO
""" ## """
print type(uc[0]) ## print type(uc[0])
uc[0] = -1 ## uc[0] = -1
print uc[0] ## print uc[0]
uc[0] = <int>3.14 ## uc[0] = <int>3.14
print uc[0] ## print uc[0]
cdef char* ch = b"asfd" ## cdef char* ch = b"asfd"
cdef object[object] objbuf ## cdef object[object] objbuf
objbuf[3] = ch ## objbuf[3] = ch
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment