[Python-checkins] Only setup PGO tests when --pgo is enabled. (GH-14927)
Miss Islington (bot)
webhook-mailer at python.org
Wed Jul 24 00:53:38 EDT 2019
https://github.com/python/cpython/commit/9f77cfc37e369c2e618fc25e4b09e0504910920a
commit: 9f77cfc37e369c2e618fc25e4b09e0504910920a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-07-23T21:53:34-07:00
summary:
Only setup PGO tests when --pgo is enabled. (GH-14927)
(cherry picked from commit f0807ab24cbd13163bff7e0de3a97fe83584b80d)
Co-authored-by: Gregory P. Smith <greg at krypto.org>
files:
M Lib/test/libregrtest/main.py
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 78b6790685c9..2b6607df15dd 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -215,8 +215,9 @@ def find_tests(self, tests):
removepy(self.tests)
- # add default PGO tests if no tests are specified
- setup_pgo_tests(self.ns)
+ if self.ns.pgo:
+ # add default PGO tests if no tests are specified
+ setup_pgo_tests(self.ns)
stdtests = STDTESTS[:]
nottests = NOTTESTS.copy()
More information about the Python-checkins
mailing list