Adds test.support.PGO and skips tests that are not useful for PGO.

This commit is contained in:
Steve Dower 2016-09-06 19:38:15 -07:00
parent a571120410
commit 22d0698d3b
11 changed files with 39 additions and 5 deletions

View file

@ -16,6 +16,9 @@ from test.support.script_helper import (
make_pkg, make_script, make_zip_pkg, make_zip_script,
assert_python_ok)
if support.PGO:
raise unittest.SkipTest("test is not helpful for PGO")
# Look up which start methods are available to test
import multiprocessing
AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods())