fix include dirs in test runner
authorStefan Behnel <scoder@users.berlios.de>
Wed, 9 Apr 2008 15:03:24 +0000 (17:03 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 9 Apr 2008 15:03:24 +0000 (17:03 +0200)
runtests.py

index d5bf75dce3d43d22b9d28181bc0544c3d5f36b21..1d3e7ca238afe392d83ed957772016de7d95f3fe 100644 (file)
@@ -8,14 +8,13 @@ import os, sys, unittest, doctest
 from distutils.extension import Extension
 from Cython.Distutils import build_ext
 
-
 from distutils.dist import Distribution
 distutils_distro = Distribution()
 
 TEST_DIRS = ['compile', 'run']
 TEST_RUN_DIRS = ['run']
 
-INCLUDE_DIRS = os.getenv('INCLUDE', '').split(os.pathsep)
+INCLUDE_DIRS = [ d for d in os.getenv('INCLUDE', '').split(os.pathsep) if d ]
 CFLAGS = os.getenv('CFLAGS', '').split()
 
 class TestBuilder(object):