From: Stefan Behnel <scoder@users.berlios.de>
Date: Wed, 3 Sep 2008 11:24:41 +0000 (+0200)
Subject: run error test cases only for one target language
X-Git-Tag: 0.9.9.2.beta~63^2~12^2~2
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c43d5cd08a1aabf9143198f1554ed834840d057b;p=cython.git

run error test cases only for one target language
---

diff --git a/runtests.py b/runtests.py
index 228f7126..e902035d 100644
--- a/runtests.py
+++ b/runtests.py
@@ -117,9 +117,13 @@ class TestBuilder(object):
         return suite
 
     def build_tests(self, test_class, path, workdir, module, expect_errors):
+        if expect_errors:
+            languages = self.languages[:1]
+        else:
+            languages = self.languages
         tests = [ self.build_test(test_class, path, workdir, module,
                                   language, expect_errors)
-                  for language in self.languages ]
+                  for language in languages ]
         return tests
 
     def build_test(self, test_class, path, workdir, module,