Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 7bbc99cb3cbf80d03b7d8e54ec8b01d2fccd4fa3 1 parent 1924e95
scoder scoder authored
5 runtests.py
@@ -223,6 +223,7 @@ def get_openmp_compiler_flags(language):
223 223 INCLUDE_DIRS = [ d for d in os.getenv('INCLUDE', '').split(os.pathsep) if d ]
224 224 CFLAGS = os.getenv('CFLAGS', '').split()
225 225 CCACHE = os.getenv('CYTHON_RUNTESTS_CCACHE', '').split()
  226 +TEST_SUPPORT_DIR = 'testsupport'
226 227
227 228 BACKENDS = ['c', 'cpp']
228 229
@@ -329,7 +330,7 @@ def build_suite(self):
329 330 filenames.sort()
330 331 for filename in filenames:
331 332 path = os.path.join(self.rootdir, filename)
332   - if os.path.isdir(path):
  333 + if os.path.isdir(path) and filename != TEST_SUPPORT_DIR:
333 334 if filename == 'pyregr' and not self.with_pyregr:
334 335 continue
335 336 if filename == 'broken' and not self.test_bugs:
@@ -566,7 +567,7 @@ def split_source_and_output(self, test_directory, module, workdir):
566 567
567 568 def run_cython(self, test_directory, module, targetdir, incdir, annotate,
568 569 extra_compile_options=None):
569   - include_dirs = INCLUDE_DIRS[:]
  570 + include_dirs = INCLUDE_DIRS + [os.path.join(test_directory, '..', TEST_SUPPORT_DIR)]
570 571 if incdir:
571 572 include_dirs.append(incdir)
572 573 source = self.find_module_source_file(
0  tests/memoryview/cythonarrayutil.pxi → tests/testsupport/cythonarrayutil.pxi
File renamed without changes

0 comments on commit 7bbc99c

Please sign in to comment.
Something went wrong with that request. Please try again.