]> granicus.if.org Git - python/commitdiff
Only setup PGO tests when --pgo is enabled. (GH-14927)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Jul 2019 04:53:34 +0000 (21:53 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Jul 2019 04:53:34 +0000 (21:53 -0700)
(cherry picked from commit f0807ab24cbd13163bff7e0de3a97fe83584b80d)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/libregrtest/main.py

index 78b6790685c9df880c32f1a6f427c016eff755e7..2b6607df15dd8e7060c7d4f6907f055337b1a1ce 100644 (file)
@@ -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()