From 9f77cfc37e369c2e618fc25e4b09e0504910920a Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 23 Jul 2019 21:53:34 -0700 Subject: Only setup PGO tests when --pgo is enabled. (GH-14927) (cherry picked from commit f0807ab24cbd13163bff7e0de3a97fe83584b80d) Co-authored-by: Gregory P. Smith --- Lib/test/libregrtest/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index 78b6790..2b6607d 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() -- cgit v0.12