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())