From 5255b86fba38a5e22a0991772a3c1bbf3edd66cc Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 21 Dec 2013 15:47:24 +0100 Subject: [PATCH] skip multiprocessing main handling test when Python is built without threads --- Lib/test/test_multiprocessing_main_handling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_multiprocessing_main_handling.py b/Lib/test/test_multiprocessing_main_handling.py index e4442d20e01..aa85a4d1e0f 100644 --- a/Lib/test/test_multiprocessing_main_handling.py +++ b/Lib/test/test_multiprocessing_main_handling.py @@ -15,6 +15,8 @@ from test.script_helper import ( assert_python_ok, assert_python_failure, temp_dir, spawn_python, kill_python) +# Skip tests if _multiprocessing wasn't built. +_multiprocessing = support.import_module('_multiprocessing') # Look up which start methods are available to test import multiprocessing AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods())