]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Jun 2025 10:51:51 +0000 (12:51 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Jun 2025 10:51:51 +0000 (10:51 +0000)
commit3e81d56a1bfd2cc0afc01f1d9c126d286c4943ec
tree6172ac85af40041c8bcc9a6e6a3eb3264123f038
parentb79e64b67dcd48d8482d49b2c2f24b430f8f20db
[3.13] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) (#135842)

gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987)

Using Ubuntu 24.04 on the Windows Subsystem for Linux, perf will raise a
`PermissionError` instead of `FileNotFoundError`. This commit modifies
the tests to catch that.
(cherry picked from commit 6ab842fce50a6125797bcddfc4a4b2622aa6c6a9)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Lib/test/test_perf_profiler.py