Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

miss-islington
Copy link
Contributor

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

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
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