Skip to content

Fix psutil.cpu_affinity() not available on NetBSD - #22124

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-netbsd
Oct 6, 2026
Merged

ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-netbsd

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

Fixes #22103

I now match the logic identically to what is stated in psutil docs w.r.t. platform availability.

Not going to wait for a review, since the fix looks trivial.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi
ilevkivskyi merged commit 6d35876 into python:master Oct 6, 2026
25 checks passed
@ilevkivskyi
ilevkivskyi deleted the fix-netbsd branch October 6, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.4.0: massive test suite failure

1 participant