Skip to content

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

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

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

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 skip news tests Tests in the Lib/test dir labels Jun 23, 2025
@vstinner vstinner enabled auto-merge (squash) June 23, 2025 10:28
@vstinner vstinner merged commit 3e81d56 into python:3.13 Jun 23, 2025
39 checks passed
@miss-islington miss-islington deleted the backport-6ab842f-3.13 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