From: Robert Bradshaw Date: Sun, 3 Apr 2011 01:56:02 +0000 (-0700) Subject: cleanup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=447791f5c3d25f4295877c1004861910a6d0aaa1;p=cython.git cleanup --- diff --git a/runtests.py b/runtests.py index 57deb7c3..929bd0e9 100644 --- a/runtests.py +++ b/runtests.py @@ -63,11 +63,9 @@ if sys.platform == 'win32': except ValueError: pass distutils_distro.parse_config_files(cfgfiles) -TEST_DIRS = ['compile', 'errors', 'run', 'wrappers', 'pyregr', 'build'] -TEST_RUN_DIRS = ['run', 'wrappers', 'pyregr'] - # Lists external modules, and a matcher matching tests # which should be excluded if the module is not present. +# TODO: use tags for these EXT_DEP_MODULES = { 'numpy' : re.compile('.*\.numpy_.*').match, 'pstats' : re.compile('.*\.pstats_.*').match, @@ -79,8 +77,6 @@ def get_numpy_include_dirs(): return [numpy.get_include()] -# TODO: use tags for these - EXT_DEP_INCLUDES = [ # test name matcher , callable returning list (re.compile('numpy_.*').match, get_numpy_include_dirs), @@ -209,12 +205,11 @@ class TestBuilder(object): def build_suite(self): suite = unittest.TestSuite() - test_dirs = TEST_DIRS filenames = os.listdir(self.rootdir) filenames.sort() for filename in filenames: path = os.path.join(self.rootdir, filename) - if os.path.isdir(path) and filename in test_dirs: + if os.path.isdir(path): if filename == 'pyregr' and not self.with_pyregr: continue suite.addTest(