summaryrefslogtreecommitdiff
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2019-07-23 21:33:48 -0700
committerGitHub <noreply@github.com>2019-07-23 21:33:48 -0700
commitf0807ab24cbd13163bff7e0de3a97fe83584b80d (patch)
tree2238a600d8d97be9f1149b158da39db7bc799463 /Lib/test/libregrtest
parent2f224a077a83ac9de8a12bb7dcc516642b8176d8 (diff)
downloadcpython-git-f0807ab24cbd13163bff7e0de3a97fe83584b80d.tar.gz
Only setup PGO tests when --pgo is enabled. (GH-14927)
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 78b6790685..2b6607df15 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -215,8 +215,9 @@ class Regrtest:
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()