diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-07 02:38:15 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-07 02:38:15 (GMT) |
commit | 22d0698d3b034f4f4314aa793da7225a5da640ba (patch) | |
tree | f37ff8f491d40b22f8828d7f7a6c1912df6ff869 /Lib/test/support | |
parent | a571120410bf7a92ca612068cf1a754d5dca614e (diff) | |
download | cpython-22d0698d3b034f4f4314aa793da7225a5da640ba.zip cpython-22d0698d3b034f4f4314aa793da7225a5da640ba.tar.gz cpython-22d0698d3b034f4f4314aa793da7225a5da640ba.tar.bz2 |
Adds test.support.PGO and skips tests that are not useful for PGO.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 4a7cd40..3e2ab43 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -105,7 +105,7 @@ __all__ = [ "check_warnings", "check_no_resource_warning", "EnvironmentVarGuard", "run_with_locale", "swap_item", "swap_attr", "Matcher", "set_memlimit", "SuppressCrashReport", "sortdict", - "run_with_tz", + "run_with_tz", "PGO", ] class Error(Exception): @@ -878,6 +878,10 @@ else: # Save the initial cwd SAVEDCWD = os.getcwd() +# Set by libregrtest/main.py so we can skip tests that are not +# useful for PGO +PGO = False + @contextlib.contextmanager def temp_dir(path=None, quiet=False): """Return a context manager that creates a temporary directory. |