On Tue, Nov 5, 2024 at 3:36 AM David Gow davidgow@google.com wrote:
On Sat, 2 Nov 2024 at 20:10, Tamir Duberstein tamird@gmail.com wrote:
Python 3.13 added os.process_cpu_count as a cross-platform alternative for the Linux-only os.sched_getaffinity. Use it when it's available and provide a fallback when it's not.
This allows kunit to run on macOS.
Signed-off-by: Tamir Duberstein tamird@gmail.com
Looks plausible enough to me. Thanks very much!
Reviewed-by: David Gow davidgow@google.com
Cheers, -- David
Thanks David! While the next patch is still plausibly undergoing discussion, would it be possible to pick this one up? Without it kunit.py is not usable on macOS.