Permalink
Browse files

fix tests by moving commonly used test helper file to a new test supp…

…ort directory

--HG--
rename : tests/memoryview/cythonarrayutil.pxi => tests/testsupport/cythonarrayutil.pxi
  • Loading branch information...
1 parent 1924e95 commit 7bbc99cb3cbf80d03b7d8e54ec8b01d2fccd4fa3 @scoder scoder committed Jul 8, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 runtests.py
  2. 0 tests/{memoryview → testsupport}/cythonarrayutil.pxi
View
@@ -223,6 +223,7 @@ def get_openmp_compiler_flags(language):
INCLUDE_DIRS = [ d for d in os.getenv('INCLUDE', '').split(os.pathsep) if d ]
CFLAGS = os.getenv('CFLAGS', '').split()
CCACHE = os.getenv('CYTHON_RUNTESTS_CCACHE', '').split()
+TEST_SUPPORT_DIR = 'testsupport'
BACKENDS = ['c', 'cpp']
@@ -329,7 +330,7 @@ def build_suite(self):
filenames.sort()
for filename in filenames:
path = os.path.join(self.rootdir, filename)
- if os.path.isdir(path):
+ if os.path.isdir(path) and filename != TEST_SUPPORT_DIR:
if filename == 'pyregr' and not self.with_pyregr:
continue
if filename == 'broken' and not self.test_bugs:
@@ -566,7 +567,7 @@ def split_source_and_output(self, test_directory, module, workdir):
def run_cython(self, test_directory, module, targetdir, incdir, annotate,
extra_compile_options=None):
- include_dirs = INCLUDE_DIRS[:]
+ include_dirs = INCLUDE_DIRS + [os.path.join(test_directory, '..', TEST_SUPPORT_DIR)]
if incdir:
include_dirs.append(incdir)
source = self.find_module_source_file(

0 comments on commit 7bbc99c

Please sign in to comment.