fix non-forked testing
authorStefan Behnel <scoder@users.berlios.de>
Mon, 25 Apr 2011 18:42:34 +0000 (20:42 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 25 Apr 2011 18:42:34 +0000 (20:42 +0200)
runtests.py

index 4d2c1bb201842d4d436252a6daf94f4692536366..a0e256100f91c8ba732f0129bdaa86cd80cd9d93 100644 (file)
@@ -595,8 +595,8 @@ class CythonRunTestCase(CythonCompileTestCase):
 
 
 def run_forked_test(result, run_func, test_name, fork=True):
-    if sys.version_info[0] >= 3 or not hasattr(os, 'fork') or not fork:
-        run_test(result)
+    if not fork or sys.version_info[0] >= 3 or not hasattr(os, 'fork'):
+        run_func(result)
         gc.collect()
         return