Skip to content

[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987)#135841

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-6ab842f-3.14
Jun 23, 2025
Merged

[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987)#135841
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-6ab842f-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

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 6ab842f)

Co-authored-by: Emma Smith emma@emmatyping.dev

…sts (pythonGH-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 6ab842f)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 23, 2025
@vstinner vstinner enabled auto-merge (squash) June 23, 2025 10:28
@vstinner vstinner merged commit 85fbf80 into python:3.14 Jun 23, 2025
46 checks passed
@miss-islington miss-islington deleted the backport-6ab842f-3.14 branch January 2, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants