Skip to content

Commit

Permalink
pythongh-110313: regrtest: don't remove files created by PGO build
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Oct 10, 2023
1 parent 732532b commit 8e08c4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/test/libregrtest/save_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ def resource_info(self):
method_suffix = name.replace('.', '_')
get_name = 'get_' + method_suffix
restore_name = 'restore_' + method_suffix
if self.pgo and method_suffix == 'files':
# gh-110313: Running PROFILE_TASK of make creates profile files
# like "code-4262.profclangr" in the current directory on
# purpose. They must not be removed.
continue
yield name, getattr(self, get_name), getattr(self, restore_name)

def __enter__(self):
Expand Down

0 comments on commit 8e08c4d

Please sign in to comment.