From: Gregory P. Smith Date: Wed, 24 Jul 2019 04:33:48 +0000 (-0700) Subject: Only setup PGO tests when --pgo is enabled. (GH-14927) X-Git-Tag: v3.9.0a1~984 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0807ab24cbd13163bff7e0de3a97fe83584b80d;p=thirdparty%2FPython%2Fcpython.git Only setup PGO tests when --pgo is enabled. (GH-14927) --- 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 @@ 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()