Skip to content

Commit

Permalink
Only setup PGO tests when --pgo is enabled. (pythonGH-14927)
Browse files Browse the repository at this point in the history
(cherry picked from commit f0807ab)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
  • Loading branch information
2 people authored and Anselm Kruis committed Aug 6, 2021
1 parent f1e577a commit 2ae21b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def find_tests(self, tests):

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()
Expand Down

0 comments on commit 2ae21b2

Please sign in to comment.