Skip to content

test_perf_profiler test failure if installed perf version string contains commit hash #132038

@itamaro

Description

@itamaro

Bug report

Bug description:

In some installations, the installed perf version string may contain a commit hash, for example:

>perf --version
perf version 6.12.9.g242e6068fd5c

this causes the test_perf_profiler to fail with:

ValueError: invalid literal for int() with base 10: 'g242e6068fd5c'

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions