From b96e3243721148c67e0f459b1c511baf69ed5772 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 25 Apr 2011 20:42:34 +0200 Subject: [PATCH] fix non-forked testing --- runtests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2