Commit 063a1661 authored by Stefan Behnel's avatar Stefan Behnel

Make the test files that depend on "cythonarrayutil.pxi" compilable by...

Make the test files that depend on "cythonarrayutil.pxi" compilable by themselves, without the search directory setup of the test runner.
parent a52b16bb
......@@ -7,7 +7,7 @@ from cython.view cimport array
from cython cimport view as v
cimport cython as cy
include "cythonarrayutil.pxi"
include "../testsupport/cythonarrayutil.pxi"
def length(shape):
......
......@@ -36,7 +36,7 @@ def testcase(func):
include "../buffers/mockbuffers.pxi"
include "cythonarrayutil.pxi"
include "../testsupport/cythonarrayutil.pxi"
def _print_attributes(memview):
print "shape: " + " ".join(map(str, memview.shape))
......
......@@ -12,7 +12,7 @@ import numpy as np
cimport cython
from cython cimport view
include "cythonarrayutil.pxi"
include "../testsupport/cythonarrayutil.pxi"
include "../buffers/mockbuffers.pxi"
ctypedef np.int32_t dtype_t
......
......@@ -156,7 +156,7 @@ def test_fused_pointer_except_null(value):
test_str = cython.declare(string_t, value)
print fused_pointer_except_null(&test_str)[0].decode('ascii')
include "cythonarrayutil.pxi"
include "../testsupport/cythonarrayutil.pxi"
cpdef cython.integral test_fused_memoryviews(cython.integral[:, ::1] a):
"""
......
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