diff options
| author | Gregory P. Smith <greg@krypto.org> | 2019-07-23 21:33:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-23 21:33:48 -0700 |
| commit | f0807ab24cbd13163bff7e0de3a97fe83584b80d (patch) | |
| tree | 2238a600d8d97be9f1149b158da39db7bc799463 /Lib/test/libregrtest | |
| parent | 2f224a077a83ac9de8a12bb7dcc516642b8176d8 (diff) | |
| download | cpython-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.py | 5 |
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() |
