skip off compiler error tests if we don't run the compiler
authorStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 19:56:17 +0000 (21:56 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 19:56:17 +0000 (21:56 +0200)
runtests.py

index 629668f3c9eaa508a059271f890f1504b5c57e50..082eae1787522ebd8b40f8f4f367346741cf897d 100644 (file)
@@ -45,6 +45,9 @@ class TestBuilder(object):
         filenames = os.listdir(self.rootdir)
         filenames.sort()
         for filename in filenames:
+            if not WITH_CYTHON and filename == "errors":
+                # we won't get any errors without running Cython
+                continue
             path = os.path.join(self.rootdir, filename)
             if os.path.isdir(path) and filename in TEST_DIRS:
                 suite.addTest(