From: Stefan Behnel Date: Mon, 25 Apr 2011 18:42:34 +0000 (+0200) Subject: fix non-forked testing X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6be512ce04e8c6135eb21cdf516c252d8f827ae1;p=cython.git fix non-forked testing --- diff --git a/runtests.py b/runtests.py index 4d2c1bb2..a0e25610 100644 --- a/runtests.py +++ b/runtests.py @@ -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