# Bug report ### Bug description: In some installations, the installed `perf` version string may contain a commit hash, for example: ```sh >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 <!-- gh-linked-prs --> ### Linked PRs * gh-132039 * gh-132058 <!-- /gh-linked-prs -->