]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:53:55 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Jun 2025 10:53:55 +0000 (10:53 +0000)
commit85fbf80ca214bdf2e1eb36691bc0e54335c7a09f
tree298afa6d492fe045e02bed700d930c3d6f696e1f
parentf0a330e5fbaebf24a1a1b9bcebf5e9be7084f241
[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) (#135841)

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