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
  • Loading branch information
gpshead authored Jul 24, 2019
1 parent 2f224a0 commit f0807ab
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 f0807ab

Please sign in to comment.