comment
[cython.git] / runtests.py
index a0381c52fd633acebcc093298a16519a97a1f1dd..8d9664524e6f9222a8889db908e8b78fa7eb4d7b 100644 (file)
@@ -56,12 +56,13 @@ EXT_DEP_INCLUDES = [
 
 VER_DEP_MODULES = {
     # tests are excluded if 'CurrentPythonVersion OP VersionTuple', i.e.
-    # (2,4) : (operator.le, ...) excludes ... when PyVer <= 2.4.x
+    # (2,4) : (operator.lt, ...) excludes ... when PyVer < 2.4.x
+    (2,4) : (operator.lt, lambda x: x in ['run.extern_builtins_T258',
+                                          'run.builtin_sorted'
+                                          ]),
     (2,5) : (operator.lt, lambda x: x in ['run.any',
                                           'run.all',
                                           ]),
-    (2,4) : (operator.le, lambda x: x in ['run.extern_builtins_T258'
-                                          ]),
     (2,6) : (operator.lt, lambda x: x in ['run.print_function',
                                           'run.cython3',
                                           ]),
@@ -863,6 +864,9 @@ def check_thread_termination(ignore_seen=True):
             continue
         t.join(timeout=2)
         if t.isAlive():
+            if not ignore_seen:
+                blocking_threads.append(t)
+                continue
             for seen in threads_seen:
                 if t is seen:
                     break
@@ -1148,6 +1152,8 @@ def main():
 if __name__ == '__main__':
     try:
         main()
+    except SystemExit: # <= Py2.4 ...
+        raise
     except Exception:
         traceback.print_exc()
         try: