diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-21 14:47:24 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-21 14:47:24 (GMT) |
commit | 5255b86fba38a5e22a0991772a3c1bbf3edd66cc (patch) | |
tree | b8bab3999a5723296b40755a0621fa56fc79ad7e /Lib/test/test_multiprocessing_main_handling.py | |
parent | a960599be5a577fdf62da9a40c997f25b4971250 (diff) | |
download | cpython-5255b86fba38a5e22a0991772a3c1bbf3edd66cc.zip cpython-5255b86fba38a5e22a0991772a3c1bbf3edd66cc.tar.gz cpython-5255b86fba38a5e22a0991772a3c1bbf3edd66cc.tar.bz2 |
skip multiprocessing main handling test when Python is built without threads
Diffstat (limited to 'Lib/test/test_multiprocessing_main_handling.py')
-rw-r--r-- | Lib/test/test_multiprocessing_main_handling.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing_main_handling.py b/Lib/test/test_multiprocessing_main_handling.py index e4442d2..aa85a4d 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()) |