Skip to content

Commit

Permalink
BUG: Actually save profile data for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Dec 2, 2024
1 parent 7c47690 commit 7d2e885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asv/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def replace_cpython_version(arg, new_version):


def extract_cpython_version(env_python):
version_regex = r"python(\d+\.\d+)"
version_regex = r"(\d+\.\d+)$"
match = re.search(version_regex, env_python)
if match:
return match.group(1)
Expand Down
2 changes: 1 addition & 1 deletion test/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_profile_python_commit(capsys, basic_conf):

assert "Profile data does not already exist" in text

tools.run_asv_with_conf(conf, 'run', "--quick", "--profile",
tools.run_asv_with_conf(conf, 'run', "--profile",
"--bench=time_secondary.track_value",
f'{util.git_default_branch()}^!', _machine_file=machine_file)
else:
Expand Down

0 comments on commit 7d2e885

Please sign in to comment.