]> granicus.if.org Git - python/commitdiff
Only setup PGO tests when --pgo is enabled. (GH-14927)
authorGregory P. Smith <greg@krypto.org>
Wed, 24 Jul 2019 04:33:48 +0000 (21:33 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Jul 2019 04:33:48 +0000 (21:33 -0700)
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()