]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134986: Catch PermissionError when trying to call perf in tests (#134987)
authorEmma Smith <emma@emmatyping.dev>
Mon, 23 Jun 2025 10:28:05 +0000 (06:28 -0400)
committerGitHub <noreply@github.com>
Mon, 23 Jun 2025 10:28:05 +0000 (12:28 +0200)
commit6ab842fce50a6125797bcddfc4a4b2622aa6c6a9
tree816f143da0d91d91bda32765cb32ac33f19548a3
parent0d9d48959e050b66cb37a333940ebf4dc2a74e15
gh-134986: Catch PermissionError when trying to call perf in tests (#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.
Lib/test/test_perf_profiler.py